Package org.spockframework.runtime
Class MasterRunListener
- java.lang.Object
-
- org.spockframework.runtime.MasterRunListener
-
- All Implemented Interfaces:
IRunListener
public class MasterRunListener extends java.lang.Object implements IRunListener
-
-
Constructor Summary
Constructors Constructor Description MasterRunListener(SpecInfo spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterFeature(FeatureInfo feature)Called after each feature of a spec.voidafterIteration(IterationInfo iteration)Called after each iteration of a data-driven feature.voidafterSpec(SpecInfo spec)Called after a spec.voidbeforeFeature(FeatureInfo feature)Called before each feature of a spec.voidbeforeIteration(IterationInfo iteration)Called before each iteration of a data-driven feature.voidbeforeSpec(SpecInfo spec)Called before a spec.voiderror(ErrorInfo error)Called for every error that occurs during a spec run.voidfeatureSkipped(FeatureInfo feature)Called if a feature is skipped, for example because it is marked with @Ignore.voidspecSkipped(SpecInfo spec)Called if a spec is skipped, for example because it is marked with @Ignore.
-
-
-
Constructor Detail
-
MasterRunListener
public MasterRunListener(SpecInfo spec)
-
-
Method Detail
-
beforeSpec
public void beforeSpec(SpecInfo spec)
Description copied from interface:IRunListenerCalled before a spec.- Specified by:
beforeSpecin interfaceIRunListener
-
beforeFeature
public void beforeFeature(FeatureInfo feature)
Description copied from interface:IRunListenerCalled before each feature of a spec.- Specified by:
beforeFeaturein interfaceIRunListener
-
beforeIteration
public void beforeIteration(IterationInfo iteration)
Description copied from interface:IRunListenerCalled 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:
beforeIterationin interfaceIRunListener
-
afterIteration
public void afterIteration(IterationInfo iteration)
Description copied from interface:IRunListenerCalled 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:
afterIterationin interfaceIRunListener
-
afterFeature
public void afterFeature(FeatureInfo feature)
Description copied from interface:IRunListenerCalled after each feature of a spec.- Specified by:
afterFeaturein interfaceIRunListener
-
afterSpec
public void afterSpec(SpecInfo spec)
Description copied from interface:IRunListenerCalled after a spec.- Specified by:
afterSpecin interfaceIRunListener
-
error
public void error(ErrorInfo error)
Description copied from interface:IRunListenerCalled 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:
errorin interfaceIRunListener
-
specSkipped
public void specSkipped(SpecInfo spec)
Description copied from interface:IRunListenerCalled if a spec is skipped, for example because it is marked with @Ignore.- Specified by:
specSkippedin interfaceIRunListener
-
featureSkipped
public void featureSkipped(FeatureInfo feature)
Description copied from interface:IRunListenerCalled if a feature is skipped, for example because it is marked with @Ignore.- Specified by:
featureSkippedin interfaceIRunListener
-
-