- java.lang.Object
-
- io.rxmicro.test.local.util.Annotations
-
public final class Annotations extends Object
- Author:
- nedis
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Annotation>
TdefaultAnnotationInstance(Class<T> annotationClass)static <T extends Annotation>
TgetPresentOrDefaultAnnotation(AnnotatedElement annotatedElement, Class<T> annotationClass)static <T extends Annotation>
TgetRequiredAnnotation(Class<?> testClass, Class<T> annotationClass)
-
-
-
Method Detail
-
getRequiredAnnotation
public static <T extends Annotation> T getRequiredAnnotation(Class<?> testClass, Class<T> annotationClass)
-
getPresentOrDefaultAnnotation
public static <T extends Annotation> T getPresentOrDefaultAnnotation(AnnotatedElement annotatedElement, Class<T> annotationClass)
-
defaultAnnotationInstance
public static <T extends Annotation> T defaultAnnotationInstance(Class<T> annotationClass)
-
-