Package org.jbehave.core.embedder
Class PerformableTree.PerformableScenario
- java.lang.Object
-
- org.jbehave.core.embedder.PerformableTree.PerformableScenario
-
- All Implemented Interfaces:
PerformableTree.Performable,PerformableTree.ReportingFailures
- Enclosing class:
- PerformableTree
public static class PerformableTree.PerformableScenario extends Object implements PerformableTree.Performable
-
-
Constructor Summary
Constructors Constructor Description PerformableScenario(Scenario scenario, String storyPath)
-
Method Summary
Modifier and Type Method Description voidaddExampleScenario(PerformableTree.ExamplePerformableScenario exampleScenario)voidexcluded(boolean excluded)List<PerformableTree.ExamplePerformableScenario>getExamples()ThrowablegetFailure()ScenariogetScenario()PerformableTree.StatusgetStatus()StringgetStoryPath()TiminggetTiming()booleanhasExamples()booleanhasNormalScenario()booleanisExcluded()booleanisPerformable()voidperform(PerformableTree.RunContext context)voidreportFailures(PerformableTree.FailureContext context)voiduseNormalScenario(PerformableTree.NormalPerformableScenario normalScenario)
-
-
-
Method Detail
-
useNormalScenario
public void useNormalScenario(PerformableTree.NormalPerformableScenario normalScenario)
-
addExampleScenario
public void addExampleScenario(PerformableTree.ExamplePerformableScenario exampleScenario)
-
excluded
public void excluded(boolean excluded)
-
isExcluded
public boolean isExcluded()
-
getStatus
public PerformableTree.Status getStatus()
-
getTiming
public Timing getTiming()
-
getScenario
public Scenario getScenario()
-
getStoryPath
public String getStoryPath()
-
getFailure
public Throwable getFailure()
-
hasNormalScenario
public boolean hasNormalScenario()
-
hasExamples
public boolean hasExamples()
-
isPerformable
public boolean isPerformable()
-
getExamples
public List<PerformableTree.ExamplePerformableScenario> getExamples()
-
perform
public void perform(PerformableTree.RunContext context) throws InterruptedException
- Specified by:
performin interfacePerformableTree.Performable- Throws:
InterruptedException
-
reportFailures
public void reportFailures(PerformableTree.FailureContext context)
- Specified by:
reportFailuresin interfacePerformableTree.ReportingFailures
-
-