public abstract class AnnotationValidator
extends java.lang.Object
ValidateWith
Instances of this class are shared by multiple test runners, so they should
be immutable and thread-safe.Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.Exception> |
NO_VALIDATION_ERRORS |
Constructor and Description |
---|
AnnotationValidator() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Exception> |
validateAnnotatedClass(TestClass testClass)
Validates annotation on the given class.
|
java.util.List<java.lang.Exception> |
validateAnnotatedField(FrameworkField field)
Validates annotation on the given field.
|
java.util.List<java.lang.Exception> |
validateAnnotatedMethod(FrameworkMethod method)
Validates annotation on the given method.
|
private static final java.util.List<java.lang.Exception> NO_VALIDATION_ERRORS
public java.util.List<java.lang.Exception> validateAnnotatedClass(TestClass testClass)
testClass
- that is being validatedpublic java.util.List<java.lang.Exception> validateAnnotatedField(FrameworkField field)
field
- that is being validatedpublic java.util.List<java.lang.Exception> validateAnnotatedMethod(FrameworkMethod method)
method
- that is being validated