Class SpecInfo

All Implemented Interfaces:
IMethodNameMapper, IAttachmentContainer, IExcludable, IInterceptable, ISkippable, ITaggable

public class SpecInfo extends SpecElementInfo<NodeInfo,Class<?>> implements IMethodNameMapper
Runtime information about a Spock specification.
Author:
Peter Niederwieser
  • Constructor Details

    • SpecInfo

      public SpecInfo()
  • Method Details

    • getPackage

      public String getPackage()
    • setPackage

      public void setPackage(String pkg)
    • getFilename

      public String getFilename()
    • setFilename

      public void setFilename(String filename)
    • getNarrative

      public String getNarrative()
    • setNarrative

      public void setNarrative(String narrative)
    • getSuperSpec

      public SpecInfo getSuperSpec()
    • setSuperSpec

      public void setSuperSpec(SpecInfo superSpec)
    • getSubSpec

      public SpecInfo getSubSpec()
    • setSubSpec

      public void setSubSpec(SpecInfo subSpec)
    • getTopSpec

      public SpecInfo getTopSpec()
    • getIsTopSpec

      public boolean getIsTopSpec()
    • getBottomSpec

      public SpecInfo getBottomSpec()
    • getIsBottomSpec

      public boolean getIsBottomSpec()
    • getSpecsTopToBottom

      public List<SpecInfo> getSpecsTopToBottom()
    • getSpecsBottomToTop

      public List<SpecInfo> getSpecsBottomToTop()
    • getInitializerMethod

      public MethodInfo getInitializerMethod()
    • setInitializerMethod

      public void setInitializerMethod(MethodInfo initializerMethod)
    • getSharedInitializerMethod

      public MethodInfo getSharedInitializerMethod()
    • setSharedInitializerMethod

      public void setSharedInitializerMethod(MethodInfo sharedInitializerMethod)
    • getSetupMethods

      public List<MethodInfo> getSetupMethods()
    • addSetupMethod

      public void addSetupMethod(MethodInfo setupMethod)
    • getCleanupMethods

      public List<MethodInfo> getCleanupMethods()
    • addCleanupMethod

      public void addCleanupMethod(MethodInfo cleanupMethod)
    • getSetupSpecMethods

      public List<MethodInfo> getSetupSpecMethods()
    • addSetupSpecMethod

      public void addSetupSpecMethod(MethodInfo setupSpecMethod)
    • getCleanupSpecMethods

      public List<MethodInfo> getCleanupSpecMethods()
    • addCleanupSpecMethod

      public void addCleanupSpecMethod(MethodInfo cleanupSpecMethod)
    • getFixtureMethods

      public Iterable<MethodInfo> getFixtureMethods()
    • getAllFixtureMethods

      public Iterable<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)
    • getSetupInterceptors

      public List<IMethodInterceptor> getSetupInterceptors()
    • addSetupInterceptor

      public void addSetupInterceptor(IMethodInterceptor interceptor)
    • getCleanupInterceptors

      public List<IMethodInterceptor> getCleanupInterceptors()
    • addCleanupInterceptor

      public void addCleanupInterceptor(IMethodInterceptor interceptor)
    • getSetupSpecInterceptors

      public List<IMethodInterceptor> getSetupSpecInterceptors()
    • addSetupSpecInterceptor

      public void addSetupSpecInterceptor(IMethodInterceptor interceptor)
    • getCleanupSpecInterceptors

      public List<IMethodInterceptor> getCleanupSpecInterceptors()
    • addCleanupSpecInterceptor

      public void addCleanupSpecInterceptor(IMethodInterceptor interceptor)
    • getSharedInitializerInterceptors

      public List<IMethodInterceptor> getSharedInitializerInterceptors()
    • addSharedInitializerInterceptor

      public void addSharedInitializerInterceptor(IMethodInterceptor interceptor)
    • getInitializerInterceptors

      public List<IMethodInterceptor> getInitializerInterceptors()
    • addInitializerInterceptor

      public void addInitializerInterceptor(IMethodInterceptor interceptor)
    • getListeners

      public List<IRunListener> getListeners()
    • addListener

      public void addListener(IRunListener listener)
    • filterFeatures

      public void filterFeatures(IFeatureFilter filter)
    • sortFeatures

      public void sortFeatures(IFeatureSortOrder order)
    • isInitializerOrFixtureMethod

      public boolean isInitializerOrFixtureMethod(String className, String methodName)
      Specified by:
      isInitializerOrFixtureMethod in interface IMethodNameMapper
    • toFeatureName

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