Package org.hibernate.validator

Examples of org.hibernate.validator.AssertTrueValidator


        InvalidValue[] invalidValues = classValidator.getInvalidValues(bholder);
        assertTrue("should be empty", invalidValues.length == 0);
    }

    public void testNonBooleanValidation() throws Exception {
        AssertTrueValidator trueValidator = new AssertTrueValidator();
        assertFalse(trueValidator.isValid("foo"));

        AssertFalseValidator falseValidator = new AssertFalseValidator();
        assertFalse(falseValidator.isValid("foo"));
    }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.AssertTrueValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.