org.jbehave.scenario.reporters
Class DelegatingScenarioReporter
java.lang.Object
org.jbehave.scenario.reporters.DelegatingScenarioReporter
- All Implemented Interfaces:
- ScenarioReporter
public class DelegatingScenarioReporter
- extends java.lang.Object
- implements ScenarioReporter
Reporter which collects other ScenarioReporter
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, toString, wait, wait, wait |
DelegatingScenarioReporter
public DelegatingScenarioReporter(java.util.Collection<ScenarioReporter> delegates)
- Creates DelegatingScenarioReporter with a given collections of delegates
- Parameters:
delegates
- the ScenarioReporters to delegate to
DelegatingScenarioReporter
public DelegatingScenarioReporter(ScenarioReporter... delegates)
- Creates DelegatingScenarioReporter with a given varargs of delegates
- Parameters:
delegates
- the ScenarioReporters to delegate to
afterScenario
public void afterScenario()
- Specified by:
afterScenario
in interface ScenarioReporter
afterStory
public void afterStory(boolean embeddedStory)
- Specified by:
afterStory
in interface ScenarioReporter
afterStory
public void afterStory()
- Specified by:
afterStory
in interface ScenarioReporter
beforeScenario
public void beforeScenario(java.lang.String title)
- Specified by:
beforeScenario
in interface ScenarioReporter
beforeStory
public void beforeStory(StoryDefinition story,
boolean embeddedStory)
- Specified by:
beforeStory
in interface ScenarioReporter
beforeStory
public void beforeStory(Blurb blurb)
- Specified by:
beforeStory
in interface ScenarioReporter
beforeExamples
public void beforeExamples(java.util.List<java.lang.String> steps,
ExamplesTable table)
- Specified by:
beforeExamples
in interface ScenarioReporter
example
public void example(java.util.Map<java.lang.String,java.lang.String> tableRow)
- Specified by:
example
in interface ScenarioReporter
afterExamples
public void afterExamples()
- Specified by:
afterExamples
in interface ScenarioReporter
examplesTable
public void examplesTable(ExamplesTable table)
- Specified by:
examplesTable
in interface ScenarioReporter
examplesTableRow
public void examplesTableRow(java.util.Map<java.lang.String,java.lang.String> tableRow)
- Specified by:
examplesTableRow
in interface ScenarioReporter
failed
public void failed(java.lang.String step,
java.lang.Throwable e)
- Specified by:
failed
in interface ScenarioReporter
givenScenarios
public void givenScenarios(java.util.List<java.lang.String> givenScenarios)
- Specified by:
givenScenarios
in interface ScenarioReporter
ignorable
public void ignorable(java.lang.String step)
- Specified by:
ignorable
in interface ScenarioReporter
notPerformed
public void notPerformed(java.lang.String step)
- Specified by:
notPerformed
in interface ScenarioReporter
pending
public void pending(java.lang.String step)
- Specified by:
pending
in interface ScenarioReporter
successful
public void successful(java.lang.String step)
- Specified by:
successful
in interface ScenarioReporter
getDelegates
public java.util.Collection<ScenarioReporter> getDelegates()
Copyright © 2003-2010. All Rights Reserved.