Package org.junit.validator
Class AnnotationsValidator
- java.lang.Object
- org.junit.validator.AnnotationsValidator
- All Implemented Interfaces:
TestClassValidator
public final class AnnotationsValidator extends Object implements TestClassValidator
AnAnnotationsValidator
validates all annotations of a test class, including its annotated fields and methods.- Since:
- 4.12
Constructor Summary
Constructors Constructor Description AnnotationsValidator()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Exception>
validateTestClass(TestClass testClass)
Validate all annotations of the specified test class that are be annotated withValidateWith
.
Constructor Detail
AnnotationsValidator
public AnnotationsValidator()
Method Detail
validateTestClass
public List<Exception> validateTestClass(TestClass testClass)
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.