use of org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.AbstractDecimalMaxValidator in project hibernate-validator by hibernate.
the class MaxValidatorForNumberTest method testDecimalMax.
private void testDecimalMax(DecimalMax m, boolean inclusive) {
AbstractDecimalMaxValidator constraint = new DecimalMaxValidatorForNumber();
constraint.initialize(m);
testNumberValidator(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForBigDecimal();
constraint.initialize(m);
testValidatorBigDecimal(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForBigInteger();
constraint.initialize(m);
testValidatorBigInteger(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForByte();
constraint.initialize(m);
testValidatorByte(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForShort();
constraint.initialize(m);
testValidatorShort(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForInteger();
constraint.initialize(m);
testValidatorInteger(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForLong();
constraint.initialize(m);
testValidatorLong(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForFloat();
constraint.initialize(m);
testValidatorFloat(constraint, inclusive, true);
constraint = new DecimalMaxValidatorForDouble();
constraint.initialize(m);
testValidatorDouble(constraint, inclusive, true);
}
Aggregations