Package org.spockframework.runtime.model
Class SpecInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<NodeInfo,Class<?>>
org.spockframework.runtime.model.SpecInfo
- All Implemented Interfaces:
IMethodNameMapper
,IExcludable
,IInterceptable
,ISkippable
public class SpecInfo
extends NodeInfo<NodeInfo,Class<?>>
implements IMethodNameMapper, ISkippable, IExcludable, IInterceptable
Runtime information about a Spock specification.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(FeatureInfo feature) void
void
addInterceptor
(IMethodInterceptor interceptor) void
addListener
(IRunListener listener) void
filterFeatures
(IFeatureFilter filter) boolean
boolean
boolean
isInitializerOrFixtureMethod
(String className, String methodName) boolean
boolean
void
setCleanupMethod
(MethodInfo cleanupMethod) void
setCleanupSpecMethod
(MethodInfo cleanupSpecMethod) void
setExcluded
(boolean excluded) void
setFilename
(String filename) void
setInitializerMethod
(MethodInfo initializerMethod) void
setSetupMethod
(MethodInfo setupMethod) void
setSetupSpecMethod
(MethodInfo setupSpecMethod) void
setSharedInitializerMethod
(MethodInfo sharedInitializerMethod) void
setSkipped
(boolean skipped) void
setSubSpec
(SpecInfo subSpec) void
setSuperSpec
(SpecInfo superSpec) void
sortFeatures
(IFeatureSortOrder order) toFeatureName
(String methodName) Methods inherited from class org.spockframework.runtime.model.NodeInfo
getDescription, getLine, getMetadata, getName, getParent, getReflection, isStub, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
Constructor Details
-
SpecInfo
public SpecInfo()
-
-
Method Details
-
getFilename
-
setFilename
-
getSuperSpec
-
setSuperSpec
-
getSubSpec
-
setSubSpec
-
getTopSpec
-
isTopSpec
public boolean isTopSpec() -
getBottomSpec
-
isBottomSpec
public boolean isBottomSpec() -
getSpecsTopToBottom
-
getSpecsBottomToTop
-
getInitializerMethod
-
setInitializerMethod
-
getSetupMethod
-
setSetupMethod
-
getCleanupMethod
-
setCleanupMethod
-
getSetupSpecMethod
-
setSetupSpecMethod
-
getCleanupSpecMethod
-
setCleanupSpecMethod
-
getFixtureMethods
-
getAllFixtureMethods
-
getFields
-
getAllFields
-
addField
-
getFeatures
-
getAllFeatures
-
getAllFeaturesInExecutionOrder
-
addFeature
-
getInterceptors
- Specified by:
getInterceptors
in interfaceIInterceptable
-
addInterceptor
- Specified by:
addInterceptor
in interfaceIInterceptable
-
getListeners
-
addListener
-
isExcluded
public boolean isExcluded()- Specified by:
isExcluded
in interfaceIExcludable
-
setExcluded
public void setExcluded(boolean excluded) - Specified by:
setExcluded
in interfaceIExcludable
-
isSkipped
public boolean isSkipped()- Specified by:
isSkipped
in interfaceISkippable
-
setSkipped
public void setSkipped(boolean skipped) - Specified by:
setSkipped
in interfaceISkippable
-
filterFeatures
-
sortFeatures
-
isInitializerOrFixtureMethod
- Specified by:
isInitializerOrFixtureMethod
in interfaceIMethodNameMapper
-
toFeatureName
- Specified by:
toFeatureName
in interfaceIMethodNameMapper
-