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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterStory(boolean givenStory) voidbeforeStory(Story story, boolean givenStory) voidvoidfailedOutcomes(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:
afterStoryin interfaceStoryReporter- Overrides:
afterStoryin classDelegatingStoryReporter
-
beforeStory
- Specified by:
beforeStoryin interfaceStoryReporter- Overrides:
beforeStoryin classDelegatingStoryReporter
-
failed
- Specified by:
failedin interfaceStoryReporter- Overrides:
failedin classDelegatingStoryReporter
-
failedOutcomes
- Specified by:
failedOutcomesin interfaceStoryReporter- Overrides:
failedOutcomesin classDelegatingStoryReporter
-