Class GenericConstraintsValidationTest

    • Constructor Detail

      • GenericConstraintsValidationTest

        public GenericConstraintsValidationTest()
    • Method Detail

      • testInhereitanceFieldForModel

        public void testInhereitanceFieldForModel()
        null reference constraint test on different type level attributes
         Principal.NAME
                        |
         User.PASSWORDPASSWORDQUESTION
                        |
         Customer
      • testNotNullConstraintWithOwnModelAttributes

        public void testNotNullConstraintWithOwnModelAttributes()
        simple test - using own model attribute Testing NotNull constraint
      • testNullConstraintWithSuperModelAttributes

        public void testNullConstraintWithSuperModelAttributes()
        also simple test - but using attribute from supermodel Testing Null constraint
      • testAssertTrue

        public void testAssertTrue()
        testing the AssertTrue setting the constraint to the C2LItemModel.active attribute but for the LanguageModel only
      • testAssertFalseAndNotNull

        public void testAssertFalseAndNotNull()
        setting the NotNull constraint to C2LItemModel.avtive and the AssertFalse to LanguageModel.active (same attribute descriptor)
      • testDecimalMinMaxAndDigitsConstraints

        public void testDecimalMinMaxAndDigitsConstraints()
        testing the constraints DecimalMin, DecimalMax and Digits
      • testDecimalMinMaxAndDigitsAfterDetachingConstraints

        public void testDecimalMinMaxAndDigitsAfterDetachingConstraints()
        checking validation after detaching all - should not throw any validation exception