Interface RuleMemberValidator.RuleValidator

All Known Implementing Classes:
RuleMemberValidator.DeclaringClassMustBePublic, RuleMemberValidator.FieldMustBeARule, RuleMemberValidator.FieldMustBeATestRule, RuleMemberValidator.MemberMustBeNonStaticOrAlsoClassRule, RuleMemberValidator.MemberMustBePublic, RuleMemberValidator.MemberMustBeStatic, RuleMemberValidator.MethodMustBeARule, RuleMemberValidator.MethodMustBeATestRule
Enclosing class:
RuleMemberValidator

static interface RuleMemberValidator.RuleValidator
Encapsulates a single piece of validation logic, used to determine if Rule and ClassRule annotations have been used correctly
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throwable> errors)
    Examine the given member and add any violations of the strategy's validation logic to the given list of errors
  • Method Details

    • validate

      void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throwable> errors)
      Examine the given member and add any violations of the strategy's validation logic to the given list of errors
      Parameters:
      member - The member (field or member) to examine
      annotation - The type of rule annotation on the member
      errors - The list of errors to add validation violations to