Package org.spockframework.runtime
Class AbstractRunListener
java.lang.Object
org.spockframework.runtime.AbstractRunListener
- All Implemented Interfaces:
IRunListener
- Direct Known Subclasses:
RevertMetaClassRunListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterFeature(FeatureInfo feature) Called after each feature of a spec.voidafterIteration(IterationInfo iteration) Called after each iteration of a data-driven feature.voidCalled 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.voidCalled 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 Details
-
AbstractRunListener
public AbstractRunListener()
-
-
Method Details
-
beforeSpec
Description copied from interface:IRunListenerCalled before a spec.- Specified by:
beforeSpecin interfaceIRunListener
-
beforeFeature
Description copied from interface:IRunListenerCalled before each feature of a spec.- Specified by:
beforeFeaturein interfaceIRunListener
-
beforeIteration
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
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
Description copied from interface:IRunListenerCalled after each feature of a spec.- Specified by:
afterFeaturein interfaceIRunListener
-
afterSpec
Description copied from interface:IRunListenerCalled after a spec.- Specified by:
afterSpecin interfaceIRunListener
-
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
Description copied from interface:IRunListenerCalled if a spec is skipped, for example because it is marked with @Ignore.- Specified by:
specSkippedin interfaceIRunListener
-
featureSkipped
Description copied from interface:IRunListenerCalled if a feature is skipped, for example because it is marked with @Ignore.- Specified by:
featureSkippedin interfaceIRunListener
-