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 TypeMethodDescriptionvoidOnly called via reflection.voidOnly called via reflection.voidOnly called via reflection.protected SpecificationContextgetSpecificationContext(Specification instance) protected 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()Only called via reflection. -
doRunFeature
public void doRunFeature()Only called via reflection. -
initializeAndRunIteration
-
doRunIteration
public void doRunIteration()Only called via reflection. -
resetStatus
protected int resetStatus(int scope) -
runParameterizedFeature
protected void runParameterizedFeature() -
invokeRaw
-
getSpecificationContext
-