类 CategoryValidator
- java.lang.Object
- org.junit.validator.AnnotationValidator
- org.junit.experimental.categories.CategoryValidator
public final class CategoryValidator extends AnnotationValidator
Validates that there are no errors in the use of theCategory
annotation. If there is, aThrowable
object will be added to the list of errors.- 从以下版本开始:
- 4.12
构造器概要
构造器 构造器 说明 CategoryValidator()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Exception>
validateAnnotatedMethod(FrameworkMethod method)
Adds toerrors
a throwable for each problem detected.从类继承的方法 org.junit.validator.AnnotationValidator
validateAnnotatedClass, validateAnnotatedField
构造器详细资料
CategoryValidator
public CategoryValidator()
方法详细资料
validateAnnotatedMethod
public List<Exception> validateAnnotatedMethod(FrameworkMethod method)
Adds toerrors
a throwable for each problem detected. Looks forBeforeClass
,AfterClass
,Before
andAfter
annotations.- 覆盖:
validateAnnotatedMethod
在类中AnnotationValidator
- 参数:
method
- the method that is being validated- 返回:
- A list of exceptions detected
- 从以下版本开始:
- 4.12