Searched refs:annotationClass (Results 1 – 4 of 4) sorted by relevance
41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() argument42 return new HasAnnotation(annotationClass); in hasAnnotation()47 private final Class<? extends Annotation> annotationClass; field in TestPredicates.HasAnnotation49 private HasAnnotation(Class<? extends Annotation> annotationClass) { in HasAnnotation() argument50 this.annotationClass = annotationClass; in HasAnnotation()55 return testMethod.getAnnotation(annotationClass) != null || in apply()56 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
62 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() argument64 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()
488 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getAnnotationPredicate() local489 if (annotationClass != null) { in getAnnotationPredicate()490 return hasAnnotation(annotationClass); in getAnnotationPredicate()502 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getNotAnnotationPredicate() local503 if (annotationClass != null) { in getNotAnnotationPredicate()504 return TestPredicates.not(hasAnnotation(annotationClass)); in getNotAnnotationPredicate()520 Class<?> annotationClass = Class.forName(annotationClassName); in getAnnotationClass() local521 if (annotationClass.isAnnotation()) { in getAnnotationClass()522 return (Class<? extends Annotation>)annotationClass; in getAnnotationClass()
99 final Class<Constant> annotationClass = Constant.class; in Constants() local110 final Constant constant = field.getAnnotation(annotationClass); in Constants()