public final class CategoryValidator extends AnnotationValidator
Category
annotation. If there is, a Throwable
object will be added to the list
of errors.Modifier and Type | Field and Description |
---|---|
private static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
INCOMPATIBLE_ANNOTATIONS |
Constructor and Description |
---|
CategoryValidator() |
Modifier and Type | Method and Description |
---|---|
private void |
addErrorMessage(java.util.List<java.lang.Exception> errors,
java.lang.Class<?> clazz) |
java.util.List<java.lang.Exception> |
validateAnnotatedMethod(FrameworkMethod method)
Adds to
errors a throwable for each problem detected. |
validateAnnotatedClass, validateAnnotatedField
private static final java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> INCOMPATIBLE_ANNOTATIONS
public java.util.List<java.lang.Exception> validateAnnotatedMethod(FrameworkMethod method)
errors
a throwable for each problem detected. Looks for
BeforeClass
, AfterClass
, Before
and After
annotations.validateAnnotatedMethod
in class AnnotationValidator
method
- the method that is being validatedprivate void addErrorMessage(java.util.List<java.lang.Exception> errors, java.lang.Class<?> clazz)