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, toString
public StepFailureDecorator(StoryReporter delegate)
public void afterStory(boolean givenStory)
afterStory
in interface StoryReporter
afterStory
in class DelegatingStoryReporter
public void beforeStory(Story story, boolean givenStory)
beforeStory
in interface StoryReporter
beforeStory
in class DelegatingStoryReporter
public void failed(String step, Throwable cause)
failed
in interface StoryReporter
failed
in class DelegatingStoryReporter
public void failedOutcomes(String step, OutcomesTable table)
failedOutcomes
in interface StoryReporter
failedOutcomes
in class DelegatingStoryReporter
Copyright © 2003–2021. All rights reserved.