org.spockframework.runtime
Class AbstractRunListener

java.lang.Object
  extended by org.spockframework.runtime.AbstractRunListener
All Implemented Interfaces:
IRunListener
Direct Known Subclasses:
RevertMetaClassRunListener

public class AbstractRunListener
extends java.lang.Object
implements IRunListener


Constructor Summary
AbstractRunListener()
           
 
Method Summary
 void afterFeature(FeatureInfo feature)
          Called after each feature of a spec.
 void afterIteration(IterationInfo iteration)
          Called after each iteration of a data-driven feature.
 void afterSpec(SpecInfo spec)
          Called after a spec.
 void beforeFeature(FeatureInfo feature)
          Called before each feature of a spec.
 void beforeIteration(IterationInfo iteration)
          Called before each iteration of a data-driven feature.
 void beforeSpec(SpecInfo spec)
          Called before a spec.
 void error(ErrorInfo error)
          Called for every error that occurs during a spec run.
 void featureSkipped(FeatureInfo feature)
          Called if a feature is skipped, for example because it is marked with @Ignore.
 void specSkipped(SpecInfo spec)
          Called if a spec is skipped, for example because it is marked with @Ignore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRunListener

public AbstractRunListener()
Method Detail

beforeSpec

public void beforeSpec(SpecInfo spec)
Description copied from interface: IRunListener
Called before a spec.

Specified by:
beforeSpec in interface IRunListener

beforeFeature

public void beforeFeature(FeatureInfo feature)
Description copied from interface: IRunListener
Called before each feature of a spec.

Specified by:
beforeFeature in interface IRunListener

beforeIteration

public void beforeIteration(IterationInfo iteration)
Description copied from interface: IRunListener
Called before each iteration of a data-driven feature. All data values have been computed successfully at this point. Not called for features that aren't data-driven (i.e. don't have a where-block).

Specified by:
beforeIteration in interface IRunListener

afterIteration

public void afterIteration(IterationInfo iteration)
Description copied from interface: IRunListener
Called after each iteration of a data-driven feature. Not called for features that aren't data-driven (i.e. don't have a where-block).

Specified by:
afterIteration in interface IRunListener

afterFeature

public void afterFeature(FeatureInfo feature)
Description copied from interface: IRunListener
Called after each feature of a spec.

Specified by:
afterFeature in interface IRunListener

afterSpec

public void afterSpec(SpecInfo spec)
Description copied from interface: IRunListener
Called after a spec.

Specified by:
afterSpec in interface IRunListener

error

public void error(ErrorInfo error)
Description copied from interface: IRunListener
Called for every error that occurs during a spec run. May be called multiple times for the same method, for example if both the expect-block and the cleanup-block of a feature method fail.

Specified by:
error in interface IRunListener

specSkipped

public void specSkipped(SpecInfo spec)
Description copied from interface: IRunListener
Called if a spec is skipped, for example because it is marked with @Ignore.

Specified by:
specSkipped in interface IRunListener

featureSkipped

public void featureSkipped(FeatureInfo feature)
Description copied from interface: IRunListener
Called if a feature is skipped, for example because it is marked with @Ignore.

Specified by:
featureSkipped in interface IRunListener


Copyright © 2013. All rights reserved