org.jbehave.core.reporters
Class DelegatingStoryReporter
java.lang.Object
org.jbehave.core.reporters.DelegatingStoryReporter
- All Implemented Interfaces:
- StoryReporter
public class DelegatingStoryReporter
- extends java.lang.Object
- implements StoryReporter
Reporter which collects other StoryReporter
s and delegates all
invocations to the collected reporters.
- Author:
- Mirko FriedenHagen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DelegatingStoryReporter
public DelegatingStoryReporter(java.util.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
afterScenario
public void afterScenario()
- Specified by:
afterScenario
in interface StoryReporter
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStory
in interface StoryReporter
beforeScenario
public void beforeScenario(java.lang.String title)
- Specified by:
beforeScenario
in interface StoryReporter
beforeStory
public void beforeStory(Story story,
boolean givenStory)
- Specified by:
beforeStory
in interface StoryReporter
beforeExamples
public void beforeExamples(java.util.List<java.lang.String> steps,
ExamplesTable table)
- Specified by:
beforeExamples
in interface StoryReporter
example
public void example(java.util.Map<java.lang.String,java.lang.String> tableRow)
- Specified by:
example
in interface StoryReporter
afterExamples
public void afterExamples()
- Specified by:
afterExamples
in interface StoryReporter
failed
public void failed(java.lang.String step,
java.lang.Throwable cause)
- Specified by:
failed
in interface StoryReporter
failedOutcomes
public void failedOutcomes(java.lang.String step,
OutcomesTable table)
- Specified by:
failedOutcomes
in interface StoryReporter
givenStories
public void givenStories(java.util.List<java.lang.String> storyPaths)
- Specified by:
givenStories
in interface StoryReporter
ignorable
public void ignorable(java.lang.String step)
- Specified by:
ignorable
in interface StoryReporter
notPerformed
public void notPerformed(java.lang.String step)
- Specified by:
notPerformed
in interface StoryReporter
pending
public void pending(java.lang.String step)
- Specified by:
pending
in interface StoryReporter
successful
public void successful(java.lang.String step)
- Specified by:
successful
in interface StoryReporter
dryRun
public void dryRun()
- Specified by:
dryRun
in interface StoryReporter
getDelegates
public java.util.Collection<StoryReporter> getDelegates()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.