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