public class StepFailureDecorator extends DelegatingStoryReporter
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.
StepFailed| Constructor and Description |
|---|
StepFailureDecorator(StoryReporter delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterStory(boolean givenStory) |
void |
beforeStory(Story story,
boolean givenStory) |
void |
failed(String step,
Throwable cause) |
void |
failedOutcomes(String step,
OutcomesTable table) |
afterExamples, afterGivenStories, afterScenario, afterScenarioSteps, afterStorySteps, beforeExamples, beforeGivenStories, beforeScenario, beforeScenario, beforeScenarioSteps, beforeStep, beforeStorySteps, comment, dryRun, example, example, getDelegates, givenStories, givenStories, ignorable, lifecyle, narrative, notPerformed, pending, pendingMethods, restarted, restartedStory, scenarioMeta, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toStringpublic StepFailureDecorator(StoryReporter delegate)
public void afterStory(boolean givenStory)
afterStory in interface StoryReporterafterStory in class DelegatingStoryReporterpublic void beforeStory(Story story, boolean givenStory)
beforeStory in interface StoryReporterbeforeStory in class DelegatingStoryReporterpublic void failed(String step, Throwable cause)
failed in interface StoryReporterfailed in class DelegatingStoryReporterpublic void failedOutcomes(String step, OutcomesTable table)
failedOutcomes in interface StoryReporterfailedOutcomes in class DelegatingStoryReporterCopyright © 2003–2019. All rights reserved.