public class DelegatingStoryReporter extends Object implements StoryReporter
StoryReporter
s and delegates all
invocations to the collected reporters.Constructor and Description |
---|
DelegatingStoryReporter(Collection<StoryReporter> delegates)
Creates DelegatingStoryReporter with a given collections of delegates
|
DelegatingStoryReporter(StoryReporter... delegates)
Creates DelegatingStoryReporter with a given varargs of delegates
|
public DelegatingStoryReporter(Collection<StoryReporter> delegates)
delegates
- the ScenarioReporters to delegate topublic DelegatingStoryReporter(StoryReporter... delegates)
delegates
- the StoryReporters to delegate topublic void afterScenario()
afterScenario
in interface StoryReporter
public void afterStory(boolean givenStory)
afterStory
in interface StoryReporter
public void beforeScenario(String scenarioTitle)
beforeScenario
in interface StoryReporter
public void scenarioMeta(Meta meta)
scenarioMeta
in interface StoryReporter
public void beforeStory(Story story, boolean givenStory)
beforeStory
in interface StoryReporter
public void narrative(Narrative narrative)
narrative
in interface StoryReporter
public void lifecyle(Lifecycle lifecycle)
lifecyle
in interface StoryReporter
public void beforeExamples(List<String> steps, ExamplesTable table)
beforeExamples
in interface StoryReporter
public void example(Map<String,String> tableRow)
example
in interface StoryReporter
public void afterExamples()
afterExamples
in interface StoryReporter
public void failed(String step, Throwable cause)
failed
in interface StoryReporter
public void failedOutcomes(String step, OutcomesTable table)
failedOutcomes
in interface StoryReporter
public void givenStories(GivenStories givenStories)
givenStories
in interface StoryReporter
public void givenStories(List<String> storyPaths)
givenStories
in interface StoryReporter
public void beforeStep(String step)
beforeStep
in interface StoryReporter
public void ignorable(String step)
ignorable
in interface StoryReporter
public void comment(String step)
comment
in interface StoryReporter
public void notPerformed(String step)
notPerformed
in interface StoryReporter
public void pending(String step)
pending
in interface StoryReporter
public void successful(String step)
successful
in interface StoryReporter
public void scenarioNotAllowed(Scenario scenario, String filter)
scenarioNotAllowed
in interface StoryReporter
public void storyNotAllowed(Story story, String filter)
storyNotAllowed
in interface StoryReporter
public void dryRun()
dryRun
in interface StoryReporter
public void pendingMethods(List<String> methods)
pendingMethods
in interface StoryReporter
public void restarted(String step, Throwable cause)
restarted
in interface StoryReporter
public void restartedStory(Story story, Throwable cause)
restartedStory
in interface StoryReporter
public void storyCancelled(Story story, StoryDuration storyDuration)
storyCancelled
in interface StoryReporter
public Collection<StoryReporter> getDelegates()
Copyright © 2003–2016. All rights reserved.