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 TypeMethodDescriptionvoidaddFeature(FeatureInfo feature) voidvoidaddInterceptor(IMethodInterceptor interceptor) voidaddListener(IRunListener listener) voidfilterFeatures(IFeatureFilter filter) booleanbooleanbooleanisInitializerOrFixtureMethod(String className, String methodName) booleanbooleanvoidsetCleanupMethod(MethodInfo cleanupMethod) voidsetCleanupSpecMethod(MethodInfo cleanupSpecMethod) voidsetExcluded(boolean excluded) voidsetFilename(String filename) voidsetInitializerMethod(MethodInfo initializerMethod) voidsetSetupMethod(MethodInfo setupMethod) voidsetSetupSpecMethod(MethodInfo setupSpecMethod) voidsetSharedInitializerMethod(MethodInfo sharedInitializerMethod) voidsetSkipped(boolean skipped) voidsetSubSpec(SpecInfo subSpec) voidsetSuperSpec(SpecInfo superSpec) voidsortFeatures(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:
getInterceptorsin interfaceIInterceptable
-
addInterceptor
- Specified by:
addInterceptorin interfaceIInterceptable
-
getListeners
-
addListener
-
isExcluded
public boolean isExcluded()- Specified by:
isExcludedin interfaceIExcludable
-
setExcluded
public void setExcluded(boolean excluded) - Specified by:
setExcludedin interfaceIExcludable
-
isSkipped
public boolean isSkipped()- Specified by:
isSkippedin interfaceISkippable
-
setSkipped
public void setSkipped(boolean skipped) - Specified by:
setSkippedin interfaceISkippable
-
filterFeatures
-
sortFeatures
-
isInitializerOrFixtureMethod
- Specified by:
isInitializerOrFixtureMethodin interfaceIMethodNameMapper
-
toFeatureName
- Specified by:
toFeatureNamein interfaceIMethodNameMapper
-