Class CustomConstraintValidatorFactoryTest


  • public class CustomConstraintValidatorFactoryTest
    extends Object
    Checks that overriding the default ConstraintValidatorFactory works as expected.
    Author:
    Carlos Vara
    • Constructor Detail

      • CustomConstraintValidatorFactoryTest

        public CustomConstraintValidatorFactoryTest()
    • Method Detail

      • testValidationExceptionWhenFactoryReturnsNullValidator

        public void testValidationExceptionWhenFactoryReturnsNullValidator()
        If the custom ConstraintValidatorFactory returns null for a valid ConstraintValidatorFactory.getInstance(Class) call, a validation exception should be thrown.