AbstractScenarioRunner extends Runner { public static Description getDescriptionForSimulation(Optional<String> className, List<ScenarioWithIndex> scenarios) { Description suiteDescription = Description.createSuiteDescription("Test Scenarios (Preview) tests"); scenarios.forEach(scenarioWithIndex -> suiteDescription.addChild( getDescriptionForScenario(className, scenarioWithIndex.getIndex(), scenarioWithIndex.getScesimData()))); return suiteDescription; } 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();  }
@Test public void getDescriptionForSimulationByClassNameAndSimulation() { Description retrieved = AbstractScenarioRunner.getDescriptionForSimulation(Optional.empty(), scenarioRunnerDTOLocal.getScenarioWithIndices()); commonVerifyDescriptionForSimulation(retrieved, AbstractScenarioRunner.class.getCanonicalName()); retrieved = AbstractScenarioRunner.getDescriptionForSimulation(Optional.of(String.class.getCanonicalName()), scenarioRunnerDTOLocal.getScenarioWithIndices()); commonVerifyDescriptionForSimulation(retrieved, String.class.getCanonicalName()); }