类 AnnotationsValidator
- java.lang.Object
- org.junit.validator.AnnotationsValidator
- 所有已实现的接口:
TestClassValidator
public final class AnnotationsValidator extends Object implements TestClassValidator
AnAnnotationsValidator
validates all annotations of a test class, including its annotated fields and methods.- 从以下版本开始:
- 4.12
构造器概要
构造器 构造器 说明 AnnotationsValidator()
构造器详细资料
AnnotationsValidator
public AnnotationsValidator()
方法详细资料
validateTestClass
public List<Exception> validateTestClass(TestClass testClass)
Validate all annotations of the specified test class that are be annotated withValidateWith
.- 指定者:
validateTestClass
在接口中TestClassValidator
- 参数:
testClass
- theTestClass
that is validated.- 返回:
- the errors found by the validator.