net.thucydides.core.annotations
Class TestAnnotations

Package class diagram package TestAnnotations
java.lang.Object
  extended by net.thucydides.core.annotations.TestAnnotations

public class TestAnnotations
extends Object

Utility class used to help process annotations on tests and test steps.


Method Summary
 TestTag convertToTestTag(WithTag withTag)
           
static TestAnnotations forClass(Class<?> testClass)
           
 com.google.common.base.Optional<String> getAnnotatedIssueForMethod(String methodName)
          Return a list of the issues mentioned in the Issue annotation of this method.
 String getAnnotatedIssueForTestCase(Class<?> testCase)
           
 String[] getAnnotatedIssuesForMethod(String methodName)
           
 List<String> getAnnotatedIssuesForMethodTitle(String methodName)
          Return a list of the issues mentioned in the title annotation of this method.
 String[] getAnnotatedIssuesForTestCase(Class<?> testCase)
           
 com.google.common.base.Optional<String> getAnnotatedTitleForMethod(String methodName)
           
 List<String> getIssuesForMethod(String methodName)
           
 List<TestTag> getTags()
           
 List<TestTag> getTagsForMethod(String methodName)
           
static boolean isIgnored(Method method)
           
 boolean isIgnored(String methodName)
           
static boolean isPending(Method method)
           
 boolean isPending(String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forClass

public static TestAnnotations forClass(Class<?> testClass)

getAnnotatedTitleForMethod

public com.google.common.base.Optional<String> getAnnotatedTitleForMethod(String methodName)

isPending

public boolean isPending(String methodName)

isPending

public static boolean isPending(Method method)

isIgnored

public static boolean isIgnored(Method method)

isIgnored

public boolean isIgnored(String methodName)

getAnnotatedIssuesForMethodTitle

public List<String> getAnnotatedIssuesForMethodTitle(String methodName)
Return a list of the issues mentioned in the title annotation of this method.


getAnnotatedIssueForMethod

public com.google.common.base.Optional<String> getAnnotatedIssueForMethod(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

getAnnotatedIssuesForMethod

public String[] getAnnotatedIssuesForMethod(String methodName)

getAnnotatedIssueForTestCase

public String getAnnotatedIssueForTestCase(Class<?> testCase)

getAnnotatedIssuesForTestCase

public String[] getAnnotatedIssuesForTestCase(Class<?> testCase)

getIssuesForMethod

public List<String> getIssuesForMethod(String methodName)

getTagsForMethod

public List<TestTag> getTagsForMethod(String methodName)

getTags

public List<TestTag> getTags()

convertToTestTag

public TestTag convertToTestTag(WithTag withTag)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.