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 FeatureInfo
protected Specification
protected IterationInfo
protected static final Object[]
protected int
protected Specification
protected final SpecInfo
protected final IRunSupervisor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Only called via reflection.void
Only called via reflection.void
Only called via reflection.protected SpecificationContext
getSpecificationContext
(Specification instance) protected void
initializeAndRunIteration
(Object[] dataValues, int estimatedNumIterations) protected Object
invokeRaw
(Object target, MethodInfo method, Object... arguments) protected int
resetStatus
(int scope) int
run()
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
-