Search in sources :

Example 1 with AbstractDecimalMinValidator

use of org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.AbstractDecimalMinValidator in project hibernate-validator by hibernate.

the class MinValidatorForNumberTest method testDecimalMin.

private void testDecimalMin(DecimalMin m, boolean inclusive) {
    AbstractDecimalMinValidator constraint = new DecimalMinValidatorForNumber();
    constraint.initialize(m);
    testNumberValidator(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForBigDecimal();
    constraint.initialize(m);
    testValidatorBigDecimal(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForBigInteger();
    constraint.initialize(m);
    testValidatorBigInteger(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForByte();
    constraint.initialize(m);
    testValidatorByte(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForShort();
    constraint.initialize(m);
    testValidatorShort(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForInteger();
    constraint.initialize(m);
    testValidatorInteger(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForLong();
    constraint.initialize(m);
    testValidatorLong(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForFloat();
    constraint.initialize(m);
    testValidatorFloat(constraint, inclusive, false);
    constraint = new DecimalMinValidatorForDouble();
    constraint.initialize(m);
    testValidatorDouble(constraint, inclusive, false);
}
Also used : DecimalMinValidatorForBigDecimal(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigDecimal) DecimalMinValidatorForInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForInteger) DecimalMinValidatorForShort(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForShort) DecimalMinValidatorForByte(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForByte) DecimalMinValidatorForDouble(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForDouble) DecimalMinValidatorForFloat(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForFloat) DecimalMinValidatorForBigInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigInteger) AbstractDecimalMinValidator(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.AbstractDecimalMinValidator) DecimalMinValidatorForNumber(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForNumber) DecimalMinValidatorForLong(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForLong)

Aggregations

AbstractDecimalMinValidator (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.AbstractDecimalMinValidator)1 DecimalMinValidatorForBigDecimal (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigDecimal)1 DecimalMinValidatorForBigInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigInteger)1 DecimalMinValidatorForByte (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForByte)1 DecimalMinValidatorForDouble (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForDouble)1 DecimalMinValidatorForFloat (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForFloat)1 DecimalMinValidatorForInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForInteger)1 DecimalMinValidatorForLong (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForLong)1 DecimalMinValidatorForNumber (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForNumber)1 DecimalMinValidatorForShort (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForShort)1