public abstract class AbstractScenarioRunner
extends org.junit.runner.Runner
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classLoader |
protected org.junit.runner.Description |
desc |
protected ExpressionEvaluatorFactory |
expressionEvaluatorFactory |
protected org.kie.api.runtime.KieContainer |
kieContainer |
protected ScenarioRunnerDTO |
scenarioRunnerDTO |
protected SimulationRunMetadataBuilder |
simulationRunMetadataBuilder |
Constructor and Description |
---|
AbstractScenarioRunner(org.kie.api.runtime.KieContainer kieContainer,
ScenarioRunnerDTO scenarioRunnerDTO,
ExpressionEvaluatorFactory expressionEvaluatorFactory) |
protected final ClassLoader classLoader
protected final ExpressionEvaluatorFactory expressionEvaluatorFactory
protected final org.junit.runner.Description desc
protected final org.kie.api.runtime.KieContainer kieContainer
protected final ScenarioRunnerDTO scenarioRunnerDTO
protected SimulationRunMetadataBuilder simulationRunMetadataBuilder
public AbstractScenarioRunner(org.kie.api.runtime.KieContainer kieContainer, ScenarioRunnerDTO scenarioRunnerDTO, ExpressionEvaluatorFactory expressionEvaluatorFactory)
public static org.junit.runner.Description getDescriptionForSimulation(Optional<String> className, List<ScenarioWithIndex> scenarios)
public static org.junit.runner.Description getDescriptionForScenario(Optional<String> className, int index, Scenario scenario)
public static ScenarioRunnerProvider getSpecificRunnerProvider(ScenarioSimulationModel.Type type)
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in class org.junit.runner.Runner
public org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in class org.junit.runner.Runner
protected Optional<ScenarioResultMetadata> singleRunScenario(ScenarioWithIndex scenarioWithIndex, org.junit.runner.notification.RunNotifier runNotifier, Settings settings, Background background)
protected void internalRunScenario(ScenarioWithIndex scenarioWithIndex, ScenarioRunnerData scenarioRunnerData, Settings settings, Background background)
public ClassLoader getClassLoader()
public org.kie.api.runtime.KieContainer getKieContainer()
public Optional<SimulationRunMetadata> getLastRunResultMetadata()
protected abstract AbstractRunnerHelper newRunnerHelper()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.