Package org.jbehave.core.reporters
Class DelegatingStoryReporter
java.lang.Object
org.jbehave.core.reporters.DelegatingStoryReporter
- All Implemented Interfaces:
StoryReporter
- Direct Known Subclasses:
StepFailureDecorator
Reporter which collects other
StoryReporters and delegates all
invocations to the collected reporters.- Author:
- Mirko FriedenHagen
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingStoryReporter(Collection<StoryReporter> delegates) Creates DelegatingStoryReporter with a given collections of delegatesDelegatingStoryReporter(StoryReporter... delegates) Creates DelegatingStoryReporter with a given varargs of delegates -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidafterScenario(Timing timing) voidvoidafterScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type) voidvoidafterStory(boolean givenStory) voidafterStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type) voidvoidbeforeExamples(List<String> steps, ExamplesTable table) voidvoidbeforeScenario(Scenario scenario) voidvoidvoidbeforeStep(Step step) voidvoidbeforeStory(Story story, boolean givenStory) voidbeforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type) voidvoiddryRun()voidvoidvoidfailedOutcomes(String step, OutcomesTable table) voidgivenStories(List<String> storyPaths) voidgivenStories(GivenStories givenStories) voidvoidvoidvoidnotPerformed(String step) voidReport pending stepvoidvoidpendingMethods(List<String> methods) Report list of pending methodsvoidvoidrestartedStory(Story story, Throwable cause) voidscenarioExcluded(Scenario scenario, String filter) voidstoryCancelled(Story story, StoryDuration storyDuration) voidstoryExcluded(Story story, String filter) voidsuccessful(String step) toString()
-
Constructor Details
-
DelegatingStoryReporter
Creates DelegatingStoryReporter with a given collections of delegates- Parameters:
delegates- the ScenarioReporters to delegate to
-
DelegatingStoryReporter
Creates DelegatingStoryReporter with a given varargs of delegates- Parameters:
delegates- the StoryReporters to delegate to
-
-
Method Details
-
beforeStoriesSteps
- Specified by:
beforeStoriesStepsin interfaceStoryReporter
-
afterStoriesSteps
- Specified by:
afterStoriesStepsin interfaceStoryReporter
-
afterScenario
- Specified by:
afterScenarioin interfaceStoryReporter
-
afterScenarios
public void afterScenarios()- Specified by:
afterScenariosin interfaceStoryReporter
-
afterStory
public void afterStory(boolean givenStory) - Specified by:
afterStoryin interfaceStoryReporter
-
beforeScenarios
public void beforeScenarios()- Specified by:
beforeScenariosin interfaceStoryReporter
-
beforeScenario
- Specified by:
beforeScenarioin interfaceStoryReporter
-
beforeStory
- Specified by:
beforeStoryin interfaceStoryReporter
-
narrative
- Specified by:
narrativein interfaceStoryReporter
-
lifecycle
- Specified by:
lifecyclein interfaceStoryReporter
-
beforeScenarioSteps
- Specified by:
beforeScenarioStepsin interfaceStoryReporter
-
afterScenarioSteps
- Specified by:
afterScenarioStepsin interfaceStoryReporter
-
beforeComposedSteps
public void beforeComposedSteps()- Specified by:
beforeComposedStepsin interfaceStoryReporter
-
afterComposedSteps
public void afterComposedSteps()- Specified by:
afterComposedStepsin interfaceStoryReporter
-
beforeStorySteps
- Specified by:
beforeStoryStepsin interfaceStoryReporter
-
afterStorySteps
- Specified by:
afterStoryStepsin interfaceStoryReporter
-
beforeExamples
- Specified by:
beforeExamplesin interfaceStoryReporter
-
example
- Specified by:
examplein interfaceStoryReporter
-
afterExamples
public void afterExamples()- Specified by:
afterExamplesin interfaceStoryReporter
-
failed
- Specified by:
failedin interfaceStoryReporter
-
failedOutcomes
- Specified by:
failedOutcomesin interfaceStoryReporter
-
beforeGivenStories
public void beforeGivenStories()- Specified by:
beforeGivenStoriesin interfaceStoryReporter
-
givenStories
- Specified by:
givenStoriesin interfaceStoryReporter
-
givenStories
- Specified by:
givenStoriesin interfaceStoryReporter
-
afterGivenStories
public void afterGivenStories()- Specified by:
afterGivenStoriesin interfaceStoryReporter
-
beforeStep
- Specified by:
beforeStepin interfaceStoryReporter
-
ignorable
- Specified by:
ignorablein interfaceStoryReporter
-
comment
- Specified by:
commentin interfaceStoryReporter
-
notPerformed
- Specified by:
notPerformedin interfaceStoryReporter
-
pending
- Specified by:
pendingin interfaceStoryReporter
-
pending
Description copied from interface:StoryReporterReport pending step- Specified by:
pendingin interfaceStoryReporter- Parameters:
step- string representation of pending step
-
successful
- Specified by:
successfulin interfaceStoryReporter
-
scenarioExcluded
- Specified by:
scenarioExcludedin interfaceStoryReporter
-
storyExcluded
- Specified by:
storyExcludedin interfaceStoryReporter
-
dryRun
public void dryRun()- Specified by:
dryRunin interfaceStoryReporter
-
pendingMethods
Description copied from interface:StoryReporterReport list of pending methods- Specified by:
pendingMethodsin interfaceStoryReporter- Parameters:
methods- list of generated methods
-
restarted
- Specified by:
restartedin interfaceStoryReporter
-
restartedStory
- Specified by:
restartedStoryin interfaceStoryReporter
-
storyCancelled
- Specified by:
storyCancelledin interfaceStoryReporter
-
getDelegates
-
toString
-