类 AnnotationValidator

  • 直接已知子类:
    CategoryValidator

    public abstract class AnnotationValidator
    extends Object
    Validates annotations on classes and methods. To be validated, an annotation should be annotated with ValidateWith Instances of this class are shared by multiple test runners, so they should be immutable and thread-safe.
    从以下版本开始:
    4.12
    • 方法详细资料

      • validateAnnotatedClass

        public List<ExceptionvalidateAnnotatedClass​(TestClass testClass)
        Validates annotation on the given class.
        参数:
        testClass - that is being validated
        返回:
        A list of exceptions. Default behavior is to return an empty list.
        从以下版本开始:
        4.12
      • validateAnnotatedField

        public List<ExceptionvalidateAnnotatedField​(FrameworkField field)
        Validates annotation on the given field.
        参数:
        field - that is being validated
        返回:
        A list of exceptions. Default behavior is to return an empty list.
        从以下版本开始:
        4.12
      • validateAnnotatedMethod

        public List<ExceptionvalidateAnnotatedMethod​(FrameworkMethod method)
        Validates annotation on the given method.
        参数:
        method - that is being validated
        返回:
        A list of exceptions. Default behavior is to return an empty list.
        从以下版本开始:
        4.12