Package org.jbehave.core.reporters
Class StepFailureDecorator
java.lang.Object
org.jbehave.core.reporters.DelegatingStoryReporter
org.jbehave.core.reporters.StepFailureDecorator
- All Implemented Interfaces:
StoryReporter
When a step fails, the Throwable
that caused the failure is wrapped
in a StepFailed
together with the step during which the failure
occurred. If such a failure occurs it will throw the StepFailed
after the story is finished.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterStory
(boolean givenStory) void
beforeStory
(Story story, boolean givenStory) void
void
failedOutcomes
(String step, OutcomesTable table) Methods inherited from class org.jbehave.core.reporters.DelegatingStoryReporter
afterComposedSteps, afterExamples, afterGivenStories, afterScenario, afterScenarios, afterScenarioSteps, afterStoriesSteps, afterStorySteps, beforeComposedSteps, beforeExamples, beforeGivenStories, beforeScenario, beforeScenarios, beforeScenarioSteps, beforeStep, beforeStoriesSteps, beforeStorySteps, comment, dryRun, example, getDelegates, givenStories, givenStories, ignorable, lifecycle, narrative, notPerformed, pending, pending, pendingMethods, restarted, restartedStory, scenarioExcluded, storyCancelled, storyExcluded, successful, toString
-
Constructor Details
-
StepFailureDecorator
-
-
Method Details
-
afterStory
public void afterStory(boolean givenStory) - Specified by:
afterStory
in interfaceStoryReporter
- Overrides:
afterStory
in classDelegatingStoryReporter
-
beforeStory
- Specified by:
beforeStory
in interfaceStoryReporter
- Overrides:
beforeStory
in classDelegatingStoryReporter
-
failed
- Specified by:
failed
in interfaceStoryReporter
- Overrides:
failed
in classDelegatingStoryReporter
-
failedOutcomes
- Specified by:
failedOutcomes
in interfaceStoryReporter
- Overrides:
failedOutcomes
in classDelegatingStoryReporter
-