Package org.jbehave.core.reporters
Class DelegatingStoryReporter
- java.lang.Object
-
- org.jbehave.core.reporters.DelegatingStoryReporter
-
- All Implemented Interfaces:
StoryReporter
- Direct Known Subclasses:
StepFailureDecorator
public class DelegatingStoryReporter extends Object implements StoryReporter
Reporter which collects otherStoryReporter
s and delegates all invocations to the collected reporters.- Author:
- Mirko FriedenHagen
-
-
Constructor Summary
Constructors Constructor Description DelegatingStoryReporter(Collection<StoryReporter> delegates)
Creates DelegatingStoryReporter with a given collections of delegatesDelegatingStoryReporter(StoryReporter... delegates)
Creates DelegatingStoryReporter with a given varargs of delegates
-
Method Summary
-
-
-
Constructor Detail
-
DelegatingStoryReporter
public DelegatingStoryReporter(Collection<StoryReporter> delegates)
Creates DelegatingStoryReporter with a given collections of delegates- Parameters:
delegates
- the ScenarioReporters to delegate to
-
DelegatingStoryReporter
public DelegatingStoryReporter(StoryReporter... delegates)
Creates DelegatingStoryReporter with a given varargs of delegates- Parameters:
delegates
- the StoryReporters to delegate to
-
-
Method Detail
-
beforeStoriesSteps
public void beforeStoriesSteps(StepCollector.Stage stage)
- Specified by:
beforeStoriesSteps
in interfaceStoryReporter
-
afterStoriesSteps
public void afterStoriesSteps(StepCollector.Stage stage)
- Specified by:
afterStoriesSteps
in interfaceStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenario
in interfaceStoryReporter
-
afterScenarios
public void afterScenarios()
- Specified by:
afterScenarios
in interfaceStoryReporter
-
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStory
in interfaceStoryReporter
-
beforeScenarios
public void beforeScenarios()
- Specified by:
beforeScenarios
in interfaceStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenario
in interfaceStoryReporter
-
beforeStory
public void beforeStory(Story story, boolean givenStory)
- Specified by:
beforeStory
in interfaceStoryReporter
-
narrative
public void narrative(Narrative narrative)
- Specified by:
narrative
in interfaceStoryReporter
-
lifecycle
public void lifecycle(Lifecycle lifecycle)
- Specified by:
lifecycle
in interfaceStoryReporter
-
beforeScenarioSteps
public void beforeScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeScenarioSteps
in interfaceStoryReporter
-
afterScenarioSteps
public void afterScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterScenarioSteps
in interfaceStoryReporter
-
beforeComposedSteps
public void beforeComposedSteps()
- Specified by:
beforeComposedSteps
in interfaceStoryReporter
-
afterComposedSteps
public void afterComposedSteps()
- Specified by:
afterComposedSteps
in interfaceStoryReporter
-
beforeStorySteps
public void beforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeStorySteps
in interfaceStoryReporter
-
afterStorySteps
public void afterStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterStorySteps
in interfaceStoryReporter
-
beforeExamples
public void beforeExamples(List<String> steps, ExamplesTable table)
- Specified by:
beforeExamples
in interfaceStoryReporter
-
example
public void example(Map<String,String> tableRow, int exampleIndex)
- Specified by:
example
in interfaceStoryReporter
-
afterExamples
public void afterExamples()
- Specified by:
afterExamples
in interfaceStoryReporter
-
failed
public void failed(String step, Throwable cause)
- Specified by:
failed
in interfaceStoryReporter
-
failedOutcomes
public void failedOutcomes(String step, OutcomesTable table)
- Specified by:
failedOutcomes
in interfaceStoryReporter
-
beforeGivenStories
public void beforeGivenStories()
- Specified by:
beforeGivenStories
in interfaceStoryReporter
-
givenStories
public void givenStories(GivenStories givenStories)
- Specified by:
givenStories
in interfaceStoryReporter
-
givenStories
public void givenStories(List<String> storyPaths)
- Specified by:
givenStories
in interfaceStoryReporter
-
afterGivenStories
public void afterGivenStories()
- Specified by:
afterGivenStories
in interfaceStoryReporter
-
beforeStep
public void beforeStep(Step step)
- Specified by:
beforeStep
in interfaceStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorable
in interfaceStoryReporter
-
comment
public void comment(String step)
- Specified by:
comment
in interfaceStoryReporter
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformed
in interfaceStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pending
in interfaceStoryReporter
-
pending
public void pending(String step)
Description copied from interface:StoryReporter
Report pending step- Specified by:
pending
in interfaceStoryReporter
- Parameters:
step
- string representation of pending step
-
successful
public void successful(String step)
- Specified by:
successful
in interfaceStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
- Specified by:
scenarioExcluded
in interfaceStoryReporter
-
storyExcluded
public void storyExcluded(Story story, String filter)
- Specified by:
storyExcluded
in interfaceStoryReporter
-
dryRun
public void dryRun()
- Specified by:
dryRun
in interfaceStoryReporter
-
pendingMethods
public void pendingMethods(List<String> methods)
Description copied from interface:StoryReporter
Report list of pending methods- Specified by:
pendingMethods
in interfaceStoryReporter
- Parameters:
methods
- list of generated methods
-
restarted
public void restarted(String step, Throwable cause)
- Specified by:
restarted
in interfaceStoryReporter
-
restartedStory
public void restartedStory(Story story, Throwable cause)
- Specified by:
restartedStory
in interfaceStoryReporter
-
storyCancelled
public void storyCancelled(Story story, StoryDuration storyDuration)
- Specified by:
storyCancelled
in interfaceStoryReporter
-
getDelegates
public Collection<StoryReporter> getDelegates()
-
-