assertNotNull(TestUtils.getViolationWithMessage(violations, msg));
}
}
public void testConstraintValidatorResolutionAlgorithm() {
MaxTestEntity entity = new MaxTestEntity();
entity.setText("101");
entity.setProperty("201");
entity.setLongValue(301);
entity.setDecimalValue(new BigDecimal(401));
Set<ConstraintViolation<MaxTestEntity>> violations = validator.validate(entity);
assertEquals(4, violations.size());
NoValidatorTestEntity entity2 = new NoValidatorTestEntity();
try {