Package org.spockframework.runtime
Class BaseSpecRunner
java.lang.Object
org.spockframework.runtime.BaseSpecRunner
- Direct Known Subclasses:
ParameterizedSpecRunner
Executes a single Spec. Notifies its supervisor about overall execution
progress and every invocation of Spec code.
Supervisor also determines the error strategy.
- Author:
- Peter Niederwieser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FeatureInfoprotected Specificationprotected IterationInfoprotected static final Object[]protected intprotected Specificationprotected final SpecInfoprotected final IRunSupervisor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRunCleanup(SpecInfo spec) voiddoRunCleanupSpec(SpecInfo spec) voidvoiddoRunInitializer(SpecInfo spec) voidvoiddoRunSetup(SpecInfo spec) voiddoRunSetupSpec(SpecInfo spec) voidvoidprotected SpecificationContextprotected voidinitializeAndRunIteration(Object[] dataValues, int estimatedNumIterations) protected ObjectinvokeRaw(Object target, MethodInfo method, Object... arguments) protected intresetStatus(int scope) intrun()protected void
-
Field Details
-
EMPTY_ARGS
-
spec
-
supervisor
-
currentFeature
-
currentIteration
-
currentInstance
-
runStatus
protected int runStatus
-
-
Constructor Details
-
BaseSpecRunner
-
-
Method Details
-
run
public int run() -
doRunSpec
public void doRunSpec() -
doRunSetupSpec
-
doRunCleanupSpec
-
doRunFeature
public void doRunFeature() -
initializeAndRunIteration
-
doRunIteration
public void doRunIteration() -
resetStatus
protected int resetStatus(int scope) -
runParameterizedFeature
protected void runParameterizedFeature() -
doRunInitializer
-
doRunSetup
-
doRunCleanup
-
invokeRaw
-
getSpecificationContext
-