Package org.jbehave.core.embedder
Class PerformableTree.RunContext
- java.lang.Object
-
- org.jbehave.core.embedder.PerformableTree.RunContext
-
- Enclosing class:
- PerformableTree
public static class PerformableTree.RunContext extends Object
The context for running a story.
-
-
Constructor Summary
Constructors Constructor Description RunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
-
Method Summary
-
-
-
Constructor Detail
-
RunContext
public RunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
-
-
Method Detail
-
stepsContext
public StepsContext stepsContext()
-
restartScenario
public boolean restartScenario()
-
restartStory
public boolean restartStory()
-
currentPath
public void currentPath(String path)
-
interruptIfCancelled
public void interruptIfCancelled() throws InterruptedException
- Throws:
InterruptedException
-
dryRun
public boolean dryRun()
-
configuration
public Configuration configuration()
-
givenStory
public boolean givenStory()
-
path
public String path()
-
filter
public FilteredStory filter(Story story)
-
filter
public MetaFilter filter()
-
beforeStoriesSteps
public PerformableTree.PerformableSteps beforeStoriesSteps()
-
afterStoriesSteps
public PerformableTree.PerformableSteps afterStoriesSteps()
-
beforeStorySteps
public PerformableTree.PerformableSteps beforeStorySteps(Meta storyMeta)
-
afterStorySteps
public PerformableTree.PerformableSteps afterStorySteps(Meta storyMeta)
-
beforeScenarioSteps
public PerformableTree.PerformableSteps beforeScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type)
-
afterScenarioSteps
public PerformableTree.PerformableSteps afterScenarioSteps(Meta storyAndScenarioMeta, ScenarioType type)
-
childContextFor
public PerformableTree.RunContext childContextFor(GivenStory givenStory)
-
cancelStory
public void cancelStory(Story story, StoryDuration storyDuration)
-
isCancelled
public boolean isCancelled(Story story)
-
storyDuration
public StoryDuration storyDuration(Story story)
-
state
public PerformableTree.State state()
-
stateIs
public void stateIs(PerformableTree.State state)
-
failureOccurred
public boolean failureOccurred()
-
resetState
public void resetState()
-
resetFailures
public void resetFailures()
Reset all the existing failures.
-
resetFailures
public void resetFailures(Story story)
Resets only the failures corresponding to the given story.- Parameters:
story
- the story for which we want to remove the failures.
-
reporter
public StoryReporter reporter()
-
failed
public boolean failed(PerformableTree.State state)
-
failure
public Throwable failure(PerformableTree.State state)
-
addFailure
public void addFailure(Story story)
-
pendingSteps
public void pendingSteps(List<StepCreator.PendingStep> pendingSteps)
-
hasPendingSteps
public boolean hasPendingSteps()
-
isStoryPending
public boolean isStoryPending()
-
hasFailed
public boolean hasFailed()
-
status
public PerformableTree.Status status(PerformableTree.State initial)
-
getFilter
public MetaFilter getFilter()
-
getFailures
public BatchFailures getFailures()
-
embedderMonitor
public EmbedderMonitor embedderMonitor()
-
-