org.spockframework.runtime.model
Class SpecInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<NodeInfo,java.lang.Class<?>>
org.spockframework.runtime.model.SpecInfo
- All Implemented Interfaces:
- IMethodNameMapper, IExcludable, IInterceptable, ISkippable
public class SpecInfo
- extends NodeInfo<NodeInfo,java.lang.Class<?>>
- implements IMethodNameMapper, ISkippable, IExcludable, IInterceptable
Runtime information about a Spock specification.
- Author:
- Peter Niederwieser
Methods inherited from class org.spockframework.runtime.model.NodeInfo |
getDescription, getLine, getMetadata, getName, getParent, getReflection, isStub, setDescription, setLine, setMetadata, setName, setParent, setReflection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecInfo
public SpecInfo()
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String filename)
getSuperSpec
public SpecInfo getSuperSpec()
setSuperSpec
public void setSuperSpec(SpecInfo superSpec)
getSubSpec
public SpecInfo getSubSpec()
setSubSpec
public void setSubSpec(SpecInfo subSpec)
getTopSpec
public SpecInfo getTopSpec()
isTopSpec
public boolean isTopSpec()
getBottomSpec
public SpecInfo getBottomSpec()
isBottomSpec
public boolean isBottomSpec()
getSpecsTopToBottom
public java.util.List<SpecInfo> getSpecsTopToBottom()
getSpecsBottomToTop
public java.util.List<SpecInfo> getSpecsBottomToTop()
getSharedInstanceField
public FieldInfo getSharedInstanceField()
setSharedInstanceField
public void setSharedInstanceField(FieldInfo sharedInstanceField)
getInitializerMethod
public MethodInfo getInitializerMethod()
setInitializerMethod
public void setInitializerMethod(MethodInfo initializerMethod)
getSharedInitializerMethod
public MethodInfo getSharedInitializerMethod()
setSharedInitializerMethod
public void setSharedInitializerMethod(MethodInfo sharedInitializerMethod)
getSetupMethod
public MethodInfo getSetupMethod()
setSetupMethod
public void setSetupMethod(MethodInfo setupMethod)
getCleanupMethod
public MethodInfo getCleanupMethod()
setCleanupMethod
public void setCleanupMethod(MethodInfo cleanupMethod)
getSetupSpecMethod
public MethodInfo getSetupSpecMethod()
setSetupSpecMethod
public void setSetupSpecMethod(MethodInfo setupSpecMethod)
getCleanupSpecMethod
public MethodInfo getCleanupSpecMethod()
setCleanupSpecMethod
public void setCleanupSpecMethod(MethodInfo cleanupSpecMethod)
getFixtureMethods
public java.util.List<MethodInfo> getFixtureMethods()
getAllFixtureMethods
public java.util.List<MethodInfo> getAllFixtureMethods()
getFields
public java.util.List<FieldInfo> getFields()
getAllFields
public java.util.List<FieldInfo> getAllFields()
addField
public void addField(FieldInfo field)
getFeatures
public java.util.List<FeatureInfo> getFeatures()
getAllFeatures
public java.util.List<FeatureInfo> getAllFeatures()
getAllFeaturesInExecutionOrder
public java.util.List<FeatureInfo> getAllFeaturesInExecutionOrder()
addFeature
public void addFeature(FeatureInfo feature)
getInterceptors
public java.util.List<IMethodInterceptor> getInterceptors()
- Specified by:
getInterceptors
in interface IInterceptable
addInterceptor
public void addInterceptor(IMethodInterceptor interceptor)
- Specified by:
addInterceptor
in interface IInterceptable
getListeners
public java.util.List<IRunListener> getListeners()
addListener
public void addListener(IRunListener listener)
isExcluded
public boolean isExcluded()
- Specified by:
isExcluded
in interface IExcludable
setExcluded
public void setExcluded(boolean excluded)
- Specified by:
setExcluded
in interface IExcludable
isSkipped
public boolean isSkipped()
- Specified by:
isSkipped
in interface ISkippable
setSkipped
public void setSkipped(boolean skipped)
- Specified by:
setSkipped
in interface ISkippable
filterFeatures
public void filterFeatures(IFeatureFilter filter)
sortFeatures
public void sortFeatures(IFeatureSortOrder order)
isInitializerOrFixtureMethod
public boolean isInitializerOrFixtureMethod(java.lang.String className,
java.lang.String methodName)
- Specified by:
isInitializerOrFixtureMethod
in interface IMethodNameMapper
toFeatureName
public java.lang.String toFeatureName(java.lang.String methodName)
- Specified by:
toFeatureName
in interface IMethodNameMapper
Copyright © 2013. All rights reserved