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