001 package org.junit.validator; 002 003 import java.lang.annotation.Inherited; 004 import java.lang.annotation.Retention; 005 import java.lang.annotation.RetentionPolicy; 006 007 /** 008 * Allows for an {@link AnnotationValidator} to be attached to an annotation. 009 * 010 * <p>When attached to an annotation, the validator will be instantiated and invoked 011 * by the {@link org.junit.runners.ParentRunner}.</p> 012 * 013 * @since 4.12 014 */ 015 @Retention(RetentionPolicy.RUNTIME) 016 @Inherited 017 public @interface ValidateWith { 018 Class<? extends AnnotationValidator> value(); 019 }