@Test public void getDescriptionForScenario() { final Scenario scenario = scenarioRunnerDTOLocal.getScenarioWithIndices().get(2).getScesimData(); Description retrieved = AbstractScenarioRunner.getDescriptionForScenario(Optional.empty(), 1, scenario); commonVerifyDescriptionForScenario(retrieved, 1, scenario.getDescription(), AbstractScenarioRunner.class.getCanonicalName()); retrieved = AbstractScenarioRunner.getDescriptionForScenario(Optional.of(String.class.getCanonicalName()), 1, scenario); commonVerifyDescriptionForScenario(retrieved, 1, scenario.getDescription(), String.class.getCanonicalName()); }
public static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario) { return Description.createTestDescription(className.orElse(AbstractScenarioRunner.class.getCanonicalName()), String.format("#%d: %s", index, scenario.getDescription())); }
AbstractScenarioRunner extends Runner { public static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario) { return Description.createTestDescription(className.orElse(AbstractScenarioRunner.class.getCanonicalName()), String.format("#%d: %s", index, scenario.getDescription())); } }
AbstractScenarioRunner extends Runner { public static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario) { return Description.createTestDescription(className.orElse(AbstractScenarioRunner.class.getCanonicalName()), String.format("#%d: %s", index, scenario.getDescription())); } AbstractScenarioRunner(KieContainer kieContainer,
                                  ScenarioRunnerDTO scenarioRunnerDTO,
                                  ExpressionEvaluatorFactory expressionEvaluatorFactory); }
AbstractScenarioRunner extends Runner { public static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario) { return Description.createTestDescription(className.orElse(AbstractScenarioRunner.class.getCanonicalName()), String.format("#%d: %s", index, scenario.getDescription())); } AbstractScenarioRunner(KieContainer kieContainer,
                                  ScenarioRunnerDTO scenarioRunnerDTO,
                                  ExpressionEvaluatorFactory expressionEvaluatorFactory); static Description getDescriptionForSimulation(Optional<String> className, List<ScenarioWithIndex> scenarios); static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario); static ScenarioRunnerProvider getSpecificRunnerProvider(Type type); @Override void run(RunNotifier notifier); @Override Description getDescription(); Optional<String> getFileName(); ClassLoader getClassLoader(); KieContainer getKieContainer(); Optional<SimulationRunMetadata> getLastRunResultMetadata(); }
AbstractScenarioRunner extends Runner { public static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario) { return Description.createTestDescription(className.orElse(AbstractScenarioRunner.class.getCanonicalName()), String.format("#%d: %s", index, scenario.getDescription())); } AbstractScenarioRunner(KieContainer kieContainer,
                                  ScenarioRunnerDTO scenarioRunnerDTO,
                                  ExpressionEvaluatorFactory expressionEvaluatorFactory); static Description getDescriptionForSimulation(Optional<String> className, List<ScenarioWithIndex> scenarios); static Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario); static ScenarioRunnerProvider getSpecificRunnerProvider(Type type); @Override void run(RunNotifier notifier); @Override Description getDescription(); Optional<String> getFileName(); ClassLoader getClassLoader(); KieContainer getKieContainer(); Optional<SimulationRunMetadata> getLastRunResultMetadata();  }