• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.junit.validator;
2 
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Inherited;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
8 
9 /**
10  * Allows for an {@link AnnotationValidator} to be attached to an annotation.
11  *
12  * <p>When attached to an annotation, the validator will be instantiated and invoked
13  * by the {@link org.junit.runners.ParentRunner}.</p>
14  *
15  * @since 4.12
16  */
17 @Retention(RetentionPolicy.RUNTIME)
18 @Target(ElementType.ANNOTATION_TYPE)
19 @Inherited
20 public @interface ValidateWith {
value()21     Class<? extends AnnotationValidator> value();
22 }
23