Class ConstraintDefinitionsTest


  • public class ConstraintDefinitionsTest
    extends ValidationTestBase
    Checks the correct parsing of constraint definitions.
    Author:
    Carlos Vara
    • Constructor Detail

      • ConstraintDefinitionsTest

        public ConstraintDefinitionsTest()
    • Method Detail

      • testCustomAttributes

        public void testCustomAttributes()
        Checks the correct parsing of a constraint with an array of constraints as attributes.
      • testNoGroupsConstraint

        public void testNoGroupsConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with no groups() method.
      • testInvalidDefaultGroupsConstraint

        public void testInvalidDefaultGroupsConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with an invalid groups() method.
      • testNoPayloadConstraint

        public void testNoPayloadConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with no payload() method.
      • testInvalidDefaultPayloadConstraint

        public void testInvalidDefaultPayloadConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with an invalid payload() method.
      • testNoMessageConstraint

        public void testNoMessageConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with no message() method.
      • testInvalidDefaultMessageConstraint

        public void testInvalidDefaultMessageConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with an invalid message() method.
      • testInvalidAttributeConstraint

        public void testInvalidAttributeConstraint()
        Checks that a ConstraintDefinitionException is thrown when parsing a constraint definition with a method starting with 'valid'.