Class AssertTrueValidatorTest


  • public class AssertTrueValidatorTest
    extends Object
    Checks correct behaviour of AssertTrueValidator.

    Per the spec:

    • The annotated element must be true.
    • null elements are considered valid.
    TODO: Mock context and verify that it's not used during validation.
    Author:
    Carlos Vara
    See Also:
    "bean_validation-1_0_CR1-pfd-spec#Chapter6#Example6.3"
    • Constructor Detail

      • AssertTrueValidatorTest

        public AssertTrueValidatorTest()
    • Method Detail

      • testAssertTrueValidator

        public void testAssertTrueValidator()
        Test AssertTrueValidator with null context.