assertTrue(e.getMessage().contains("Cannot validate \"maxlength\": configuration 4.4 cannot be interpreted as Integer"));
}
}
public void testMinLengthValidator() {
MinLengthValidator validator = new MinLengthValidator();
assertTrue(validator.validate(null, null));
assertTrue(validator.validate("test", new TestValidatorContext("4")));
assertFalse(validator.validate("test", new TestValidatorContext("5")));
try {
validator.validate("test", new TestValidatorContext("4.4"));
fail("exception expected");
} catch (ProcessEngineException e) {
assertTrue(e.getMessage().contains("Cannot validate \"minlength\": configuration 4.4 cannot be interpreted as Integer"));
}
}