com.ibm.team.fvt.tests.scenario
Class ScenarioStepRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.ibm.team.fvt.tests.scenario.ScenarioStepRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public abstract class ScenarioStepRunner
- extends org.junit.runners.BlockJUnit4ClassRunner
Manage scenario step JUnit run.
This specific JUnit 4 runner allow to identify critical tests which will imply
a scenario execution stop if a failure would occur in those tests.
Note that it also filter tests using ScenarioRunner
constants values.
However, this is temporary as with next JUnit 4 version (ie. 4.10), that should
not be longer necessary to do it here...
Methods inherited from class org.junit.runners.ParentRunner |
filter, getDescription, getTestClass, run, setScheduler, sort |
Methods inherited from class org.junit.runner.Runner |
testCount |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioStepRunner
public ScenarioStepRunner(java.lang.Class<?> klass)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
getScenarioExecution
public ScenarioExecution getScenarioExecution()
- Returns:
- the scenarioExecution
setScenarioExecution
public void setScenarioExecution(ScenarioExecution execution)
- Store the scenario execution.
- Parameters:
execution
- the scenarioExecution to set