use of org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForNumber in project hibernate-validator by hibernate.
the class MinValidatorForNumberTest method testMin.
private void testMin(Min m, boolean inclusive) {
AbstractMinValidator constraint = new MinValidatorForNumber();
constraint.initialize(m);
testNumberValidator(constraint, inclusive, false);
constraint = new MinValidatorForBigDecimal();
constraint.initialize(m);
testValidatorBigDecimal(constraint, inclusive, false);
constraint = new MinValidatorForBigInteger();
constraint.initialize(m);
testValidatorBigInteger(constraint, inclusive, false);
constraint = new MinValidatorForByte();
constraint.initialize(m);
testValidatorByte(constraint, inclusive, false);
constraint = new MinValidatorForShort();
constraint.initialize(m);
testValidatorShort(constraint, inclusive, false);
constraint = new MinValidatorForInteger();
constraint.initialize(m);
testValidatorInteger(constraint, inclusive, false);
constraint = new MinValidatorForLong();
constraint.initialize(m);
testValidatorLong(constraint, inclusive, false);
constraint = new MinValidatorForFloat();
constraint.initialize(m);
testValidatorFloat(constraint, inclusive, false);
constraint = new MinValidatorForDouble();
constraint.initialize(m);
testValidatorDouble(constraint, inclusive, false);
}
Aggregations