org.spockframework.runtime.model
Class SpecInfo

java.lang.Object
  extended by org.spockframework.runtime.model.NodeInfo<NodeInfo,Class<?>>
      extended by org.spockframework.runtime.model.SpecInfo
All Implemented Interfaces:
IMethodNameMapper

public class SpecInfo
extends NodeInfo<NodeInfo,Class<?>>
implements IMethodNameMapper

Runtime information about a Spock specification.

Author:
Peter Niederwieser

Constructor Summary
SpecInfo()
           
 
Method Summary
 void addFeature(FeatureInfo feature)
           
 void addField(FieldInfo field)
           
 void addInterceptor(IMethodInterceptor interceptor)
           
 void addListener(IRunListener listener)
           
 void filterFeatures(IFeatureFilter filter)
           
 List<FeatureInfo> getAllFeatures()
           
 List<FeatureInfo> getAllFeaturesInExecutionOrder()
           
 List<FieldInfo> getAllFields()
           
 List<MethodInfo> getAllFixtureMethods()
           
 SpecInfo getBottomSpec()
           
 MethodInfo getCleanupMethod()
           
 MethodInfo getCleanupSpecMethod()
           
 List<FeatureInfo> getFeatures()
           
 List<FieldInfo> getFields()
           
 String getFilename()
           
 List<MethodInfo> getFixtureMethods()
           
 List<IMethodInterceptor> getInterceptors()
           
 List<IRunListener> getListeners()
           
 MethodInfo getSetupMethod()
           
 MethodInfo getSetupSpecMethod()
           
 FieldInfo getSharedInstanceField()
           
 List<SpecInfo> getSpecsBottomToTop()
           
 List<SpecInfo> getSpecsTopToBottom()
           
 SpecInfo getSubSpec()
           
 SpecInfo getSuperSpec()
           
 SpecInfo getTopSpec()
           
 boolean isBottomSpec()
           
 boolean isExcluded()
           
 boolean isFixtureMethod(String className, String methodName)
           
 boolean isSkipped()
           
 boolean isTopSpec()
           
 void setCleanupMethod(MethodInfo cleanupMethod)
           
 void setCleanupSpecMethod(MethodInfo cleanupSpecMethod)
           
 void setExcluded(boolean excluded)
           
 void setFilename(String filename)
           
 void setSetupMethod(MethodInfo setupMethod)
           
 void setSetupSpecMethod(MethodInfo setupSpecMethod)
           
 void setSharedInstanceField(FieldInfo sharedInstanceField)
           
 void setSkipped(boolean skipped)
           
 void setSubSpec(SpecInfo subSpec)
           
 void setSuperSpec(SpecInfo superSpec)
           
 void sortFeatures(IFeatureSortOrder order)
           
 String toFeatureName(String methodName)
           
 
Methods inherited from class org.spockframework.runtime.model.NodeInfo
getMetadata, getName, getParent, getReflection, isStub, setMetadata, setName, setParent, setReflection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecInfo

public SpecInfo()
Method Detail

getFilename

public String getFilename()

setFilename

public void setFilename(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 List<SpecInfo> getSpecsTopToBottom()

getSpecsBottomToTop

public List<SpecInfo> getSpecsBottomToTop()

getSharedInstanceField

public FieldInfo getSharedInstanceField()

setSharedInstanceField

public void setSharedInstanceField(FieldInfo sharedInstanceField)

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 List<MethodInfo> getFixtureMethods()

getAllFixtureMethods

public List<MethodInfo> getAllFixtureMethods()

getFields

public List<FieldInfo> getFields()

getAllFields

public List<FieldInfo> getAllFields()

addField

public void addField(FieldInfo field)

getFeatures

public List<FeatureInfo> getFeatures()

getAllFeatures

public List<FeatureInfo> getAllFeatures()

getAllFeaturesInExecutionOrder

public List<FeatureInfo> getAllFeaturesInExecutionOrder()

addFeature

public void addFeature(FeatureInfo feature)

getInterceptors

public List<IMethodInterceptor> getInterceptors()

addInterceptor

public void addInterceptor(IMethodInterceptor interceptor)

getListeners

public List<IRunListener> getListeners()

addListener

public void addListener(IRunListener listener)

isExcluded

public boolean isExcluded()

setExcluded

public void setExcluded(boolean excluded)

isSkipped

public boolean isSkipped()

setSkipped

public void setSkipped(boolean skipped)

filterFeatures

public void filterFeatures(IFeatureFilter filter)

sortFeatures

public void sortFeatures(IFeatureSortOrder order)

isFixtureMethod

public boolean isFixtureMethod(String className,
                               String methodName)
Specified by:
isFixtureMethod in interface IMethodNameMapper

toFeatureName

public String toFeatureName(String methodName)
Specified by:
toFeatureName in interface IMethodNameMapper


Copyright © 2010. All Rights Reserved.