com.ibm.team.fvt.tests.scenario
Class ScenarioStepRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by 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...


Constructor Summary
ScenarioStepRunner(java.lang.Class<?> klass)
           
 
Method Summary
 ScenarioExecution getScenarioExecution()
           
 void setScenarioExecution(ScenarioExecution execution)
          Store the scenario execution.
 
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
 

Constructor Detail

ScenarioStepRunner

public ScenarioStepRunner(java.lang.Class<?> klass)
                   throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError
Method Detail

getScenarioExecution

public ScenarioExecution getScenarioExecution()
Returns:
the scenarioExecution

setScenarioExecution

public void setScenarioExecution(ScenarioExecution execution)
Store the scenario execution.

Parameters:
execution - the scenarioExecution to set