Package org.junit.validator
Class AnnotationsValidator
- java.lang.Object
-
- org.junit.validator.AnnotationsValidator
-
- All Implemented Interfaces:
TestClassValidator
public final class AnnotationsValidator extends java.lang.Object implements TestClassValidator
AnAnnotationsValidatorvalidates all annotations of a test class, including its annotated fields and methods.- Since:
- 4.12
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAnnotationsValidator.AnnotatableValidator<T extends Annotatable>private static classAnnotationsValidator.ClassValidatorprivate static classAnnotationsValidator.FieldValidatorprivate static classAnnotationsValidator.MethodValidator
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<AnnotationsValidator.AnnotatableValidator<?>>VALIDATORS
-
Constructor Summary
Constructors Constructor Description AnnotationsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Exception>validateTestClass(TestClass testClass)Validate all annotations of the specified test class that are be annotated withValidateWith.
-
-
-
Field Detail
-
VALIDATORS
private static final java.util.List<AnnotationsValidator.AnnotatableValidator<?>> VALIDATORS
-
-
Method Detail
-
validateTestClass
public java.util.List<java.lang.Exception> validateTestClass(TestClass testClass)
Validate all annotations of the specified test class that are be annotated withValidateWith.- Specified by:
validateTestClassin interfaceTestClassValidator- Parameters:
testClass- theTestClassthat is validated.- Returns:
- the errors found by the validator.
-
-