Class AnnotationUtils
- java.lang.Object
-
- com.github.database.rider.core.util.AnnotationUtils
-
public final class AnnotationUtils extends Object
Adpated from JUnit5 AnnotationUtils: https://github.com/junit-team/junit5/blob/master/junit-platform-commons/src/main/java/org/junit/platform/commons/util/AnnotationUtils.java
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends Annotation>
AfindAnnotation(AnnotatedElement element, Class<A> annotationType)static <A extends Annotation>
AfindAnnotation(org.junit.runner.Description description, Class<A> class1)static booleanisAnnotated(AnnotatedElement element, Class<? extends Annotation> annotationType)static DataSetmergeDataSetAnnotations(DataSet classLevelDataSet, DataSet methodLevelDataSet)
-
-
-
Method Detail
-
isAnnotated
public static boolean isAnnotated(AnnotatedElement element, Class<? extends Annotation> annotationType)
- Parameters:
element- annotated method or classannotationType- annotationType Determine if an annotation ofannotationTypeis either present or meta-present on the suppliedelement.- Returns:
- true element is annotated
-
findAnnotation
public static <A extends Annotation> A findAnnotation(AnnotatedElement element, Class<A> annotationType)
-
findAnnotation
public static <A extends Annotation> A findAnnotation(org.junit.runner.Description description, Class<A> class1)
-
-