Class TestAnnotations

java.lang.Object
net.thucydides.core.annotations.TestAnnotations

public class TestAnnotations
extends java.lang.Object
Utility class used to help process annotations on tests and test steps.
  • Method Details

    • forClass

      public static TestAnnotations forClass​(java.lang.Class<?> testClass)
    • getAnnotatedTitleForMethod

      public java.util.Optional<java.lang.String> getAnnotatedTitleForMethod​(java.lang.String methodName)
    • isPending

      public boolean isPending​(java.lang.String methodName)
    • isPending

      public static boolean isPending​(java.lang.reflect.Method method)
    • isIgnored

      public static boolean isIgnored​(java.lang.reflect.Method method)
    • shouldSkipNested

      public static boolean shouldSkipNested​(java.lang.reflect.Method method)
    • isAnExampleStep

      public static boolean isAnExampleStep​(java.lang.reflect.Method method)
    • isIgnored

      public boolean isIgnored​(java.lang.String methodName)
    • getAnnotatedIssueForMethod

      public java.util.Optional<java.lang.String> getAnnotatedIssueForMethod​(java.lang.String methodName)
      Return a list of the issues mentioned in the Issue annotation of this method.
      Parameters:
      methodName - the name of the test method in the Java test class, if applicable. returns
    • getAnnotatedVersionForMethod

      public java.util.Optional<java.lang.String> getAnnotatedVersionForMethod​(java.lang.String methodName)
    • getAnnotatedIssuesForMethod

      public java.lang.String[] getAnnotatedIssuesForMethod​(java.lang.String methodName)
    • getAnnotatedIssueForTestCase

      public java.lang.String getAnnotatedIssueForTestCase​(java.lang.Class<?> testCase)
    • getAnnotatedVersionForTestCase

      public java.lang.String getAnnotatedVersionForTestCase​(java.lang.Class<?> testCase)
    • getAnnotatedIssuesForTestCase

      public java.lang.String[] getAnnotatedIssuesForTestCase​(java.lang.Class<?> testCase)
    • getTagsForMethod

      public java.util.List<TestTag> getTagsForMethod​(java.lang.String methodName)
    • getClassTags

      public java.util.List<TestTag> getClassTags()
    • getAllTags

      public java.util.List<TestTag> getAllTags()
    • getTestMethodNames

      public java.util.List<java.lang.String> getTestMethodNames()