public class ReflectionJUnitUtils extends Object
ReflectionJUnitUtils class provides reflection utilities
specific to JUnit.| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
getAnnotationsByType(Method method,
Class<A> annotationClass)
Gets all annotations of a specified type for the test method and class given
a test description.
|
public static <A extends Annotation> A[] getAnnotationsByType(Method method, Class<A> annotationClass)
A - the type of annotation to search formethod - the test method for which to find all annotations of a given
typeannotationClass - the annotation to findnull array of all found annotationsNullPointerException - if description or
annotationClass is nullCopyright (C) 2015-2017 The Helenus Driver Project Authors.