Package org.spockframework.runtime.model
Class SpecInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<NodeInfo,Class<?>>
org.spockframework.runtime.model.SpecElementInfo<NodeInfo,Class<?>>
org.spockframework.runtime.model.SpecInfo
- All Implemented Interfaces:
IMethodNameMapper,IAttachmentContainer,IExcludable,IInterceptable,ISkippable,ITaggable
Runtime information about a Spock specification.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCleanupInterceptor(IMethodInterceptor interceptor) voidaddCleanupMethod(MethodInfo cleanupMethod) voidaddCleanupSpecInterceptor(IMethodInterceptor interceptor) voidaddCleanupSpecMethod(MethodInfo cleanupSpecMethod) voidaddFeature(FeatureInfo feature) voidvoidaddInitializerInterceptor(IMethodInterceptor interceptor) voidaddListener(IRunListener listener) voidaddSetupInterceptor(IMethodInterceptor interceptor) voidaddSetupMethod(MethodInfo setupMethod) voidaddSetupSpecInterceptor(IMethodInterceptor interceptor) voidaddSetupSpecMethod(MethodInfo setupSpecMethod) voidaddSharedInitializerInterceptor(IMethodInterceptor interceptor) voidfilterFeatures(IFeatureFilter filter) booleanbooleanbooleanisInitializerOrFixtureMethod(String className, String methodName) voidsetFilename(String filename) voidsetInitializerMethod(MethodInfo initializerMethod) voidsetNarrative(String narrative) voidsetPackage(String pkg) voidsetSharedInitializerMethod(MethodInfo sharedInitializerMethod) voidsetSubSpec(SpecInfo subSpec) voidsetSuperSpec(SpecInfo superSpec) voidsortFeatures(IFeatureSortOrder order) toFeatureName(String methodName) Methods inherited from class org.spockframework.runtime.model.SpecElementInfo
addAttachment, addInterceptor, addTag, getAttachments, getInterceptors, getTags, isExcluded, isSkipped, setExcluded, setSkippedMethods inherited from class org.spockframework.runtime.model.NodeInfo
getAnnotation, getAnnotations, getDescription, getLine, getMetadata, getName, getParent, getReflection, isAnnotationPresent, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
Constructor Details
-
SpecInfo
public SpecInfo()
-
-
Method Details
-
getPackage
-
setPackage
-
getFilename
-
setFilename
-
getNarrative
-
setNarrative
-
getSuperSpec
-
setSuperSpec
-
getSubSpec
-
setSubSpec
-
getTopSpec
-
getIsTopSpec
public boolean getIsTopSpec() -
getBottomSpec
-
getIsBottomSpec
public boolean getIsBottomSpec() -
getSpecsTopToBottom
-
getSpecsBottomToTop
-
getInitializerMethod
-
setInitializerMethod
-
getSetupMethods
-
addSetupMethod
-
getCleanupMethods
-
addCleanupMethod
-
getSetupSpecMethods
-
addSetupSpecMethod
-
getCleanupSpecMethods
-
addCleanupSpecMethod
-
getFixtureMethods
-
getAllFixtureMethods
-
getFields
-
getAllFields
-
addField
-
getFeatures
-
getAllFeatures
-
getAllFeaturesInExecutionOrder
-
addFeature
-
getSetupInterceptors
-
addSetupInterceptor
-
getCleanupInterceptors
-
addCleanupInterceptor
-
getSetupSpecInterceptors
-
addSetupSpecInterceptor
-
getCleanupSpecInterceptors
-
addCleanupSpecInterceptor
-
getInitializerInterceptors
-
addInitializerInterceptor
-
getListeners
-
addListener
-
filterFeatures
-
sortFeatures
-
isInitializerOrFixtureMethod
- Specified by:
isInitializerOrFixtureMethodin interfaceIMethodNameMapper
-
toFeatureName
- Specified by:
toFeatureNamein interfaceIMethodNameMapper
-