public class TestAnnotations extends Object
Modifier and Type | Method and Description |
---|---|
TestTag |
convertToTestTag(WithTag withTag) |
static TestAnnotations |
forClass(Class<?> testClass) |
com.google.common.base.Optional<String> |
getAnnotatedIssue(String methodName) |
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) |
com.google.common.base.Optional<String> |
getAnnotatedVersionForMethod(String methodName) |
String |
getAnnotatedVersionForTestCase(Class<?> testCase) |
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) |
static boolean |
shouldSkipNested(Method method) |
public static TestAnnotations forClass(Class<?> testClass)
public com.google.common.base.Optional<String> getAnnotatedTitleForMethod(String methodName)
public boolean isPending(String methodName)
public static boolean isPending(Method method)
public static boolean isIgnored(Method method)
public static boolean shouldSkipNested(Method method)
public boolean isIgnored(String methodName)
public List<String> getAnnotatedIssuesForMethodTitle(String methodName)
public com.google.common.base.Optional<String> getAnnotatedIssue(String methodName)
public com.google.common.base.Optional<String> getAnnotatedIssueForMethod(String methodName)
methodName
- the name of the test method in the Java test class, if applicable.
returnspublic com.google.common.base.Optional<String> getAnnotatedVersionForMethod(String methodName)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.