org.jbehave.scenario.reporters
Class StepFailureScenarioReporterDecorator

java.lang.Object
  extended by org.jbehave.scenario.reporters.StepFailureScenarioReporterDecorator
All Implemented Interfaces:
ScenarioReporter

public class StepFailureScenarioReporterDecorator
extends java.lang.Object
implements ScenarioReporter

When a step fails, the Throwable that caused the failure is wrapped in a StepFailure together with the step during which the failure occurred. If such a failure occurs it will throw the StepFailure after the story is finished.

See Also:
StepFailure

Constructor Summary
StepFailureScenarioReporterDecorator(ScenarioReporter delegate)
           
 
Method Summary
 void afterScenario()
           
 void afterStory()
           
 void beforeScenario(java.lang.String title)
           
 void beforeStory(Blurb blurb)
           
 void examplesTable(ExamplesTable table)
           
 void examplesTableRow(java.util.Map<java.lang.String,java.lang.String> tableRow)
           
 void failed(java.lang.String step, java.lang.Throwable cause)
           
 void givenScenarios(java.util.List<java.lang.String> givenScenarios)
           
 void notPerformed(java.lang.String step)
           
 void pending(java.lang.String step)
           
 void successful(java.lang.String step)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepFailureScenarioReporterDecorator

public StepFailureScenarioReporterDecorator(ScenarioReporter delegate)
Method Detail

afterScenario

public void afterScenario()
Specified by:
afterScenario 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(Blurb blurb)
Specified by:
beforeStory in interface ScenarioReporter

failed

public void failed(java.lang.String step,
                   java.lang.Throwable cause)
Specified by:
failed 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

givenScenarios

public void givenScenarios(java.util.List<java.lang.String> givenScenarios)
Specified by:
givenScenarios 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


Copyright © 2003-2009. All Rights Reserved.