use of org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMaxValidator in project hibernate-validator by hibernate.
the class MaxValidatorForNumberTest method testMax.
private void testMax(Max m, boolean inclusive) {
AbstractMaxValidator constraint = new MaxValidatorForNumber();
constraint.initialize(m);
testNumberValidator(constraint, inclusive, true);
constraint = new MaxValidatorForBigDecimal();
constraint.initialize(m);
testValidatorBigDecimal(constraint, inclusive, true);
constraint = new MaxValidatorForBigInteger();
constraint.initialize(m);
testValidatorBigInteger(constraint, inclusive, true);
constraint = new MaxValidatorForByte();
constraint.initialize(m);
testValidatorByte(constraint, inclusive, true);
constraint = new MaxValidatorForShort();
constraint.initialize(m);
testValidatorShort(constraint, inclusive, true);
constraint = new MaxValidatorForInteger();
constraint.initialize(m);
testValidatorInteger(constraint, inclusive, true);
constraint = new MaxValidatorForLong();
constraint.initialize(m);
testValidatorLong(constraint, inclusive, true);
constraint = new MaxValidatorForFloat();
constraint.initialize(m);
testValidatorFloat(constraint, inclusive, true);
constraint = new MaxValidatorForDouble();
constraint.initialize(m);
testValidatorDouble(constraint, inclusive, true);
}
Aggregations