Package org.junit.validator
Class AnnotationsValidator
java.lang.Object
org.junit.validator.AnnotationsValidator
- All Implemented Interfaces:
TestClassValidator
An
AnnotationsValidator
validates all annotations of a test class,
including its annotated fields and methods.- Since:
- 4.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List
<AnnotationsValidator.AnnotatableValidator<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateTestClass
(TestClass testClass) Validate all annotations of the specified test class that are be annotated withValidateWith
.
-
Field Details
-
VALIDATORS
-
-
Constructor Details
-
AnnotationsValidator
public AnnotationsValidator()
-
-
Method Details
-
validateTestClass
Validate all annotations of the specified test class that are be annotated withValidateWith
.- Specified by:
validateTestClass
in interfaceTestClassValidator
- Parameters:
testClass
- theTestClass
that is validated.- Returns:
- the errors found by the validator.
-