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 void
addExampleScenario(PerformableTree.ExamplePerformableScenario exampleScenario)
void
excluded(boolean excluded)
List<PerformableTree.ExamplePerformableScenario>
getExamples()
Throwable
getFailure()
Scenario
getScenario()
PerformableTree.Status
getStatus()
String
getStoryPath()
Timing
getTiming()
boolean
hasExamples()
boolean
hasNormalScenario()
boolean
isExcluded()
boolean
isPerformable()
void
perform(PerformableTree.RunContext context)
void
reportFailures(PerformableTree.FailureContext context)
void
useNormalScenario(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:
perform
in interfacePerformableTree.Performable
- Throws:
InterruptedException
-
reportFailures
public void reportFailures(PerformableTree.FailureContext context)
- Specified by:
reportFailures
in interfacePerformableTree.ReportingFailures
-
-