Utility functions used in TestRuntime
Type | Name and description |
---|---|
static java.util.Collection<T> |
collectAllAnnotations(java.lang.Class annotatedClazz, java.lang.Class<T> annotationType, boolean checkPackage) Collects all annotations of given type from given class, it's package, superclasses and their packages Meta-annotations get processed too. |
static T |
findFirstAnnotation(java.lang.Class annotatedClazz, java.lang.Class<T> annotationType, boolean checkPackage) Finds first annotation of given type from given class, it's package or superclasses (and their package) Meta-annotations get processed too. |
static java.util.Collection<T> |
getAnnotations(java.lang.reflect.AnnotatedElement ae, java.lang.Class<T> annotationType) Collections annotations of given type of given class. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Collects all annotations of given type from given class, it's package, superclasses and their packages Meta-annotations get processed too.
Finds first annotation of given type from given class, it's package or superclasses (and their package) Meta-annotations get processed too.
Collections annotations of given type of given class. Processes meta-annotations.
ae
- annotated element (class or package usually)