Search in sources :

Example 1 with MinValidatorForNumber

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);
}
Also used : MinValidatorForNumber(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForNumber) DecimalMinValidatorForNumber(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForNumber) MinValidatorForBigInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForBigInteger) DecimalMinValidatorForBigInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigInteger) DecimalMinValidatorForBigDecimal(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForBigDecimal) MinValidatorForBigDecimal(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForBigDecimal) AbstractMinValidator(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMinValidator) DecimalMinValidatorForLong(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForLong) MinValidatorForLong(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForLong) DecimalMinValidatorForInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForInteger) MinValidatorForInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForInteger) DecimalMinValidatorForFloat(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForFloat) MinValidatorForFloat(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForFloat) DecimalMinValidatorForDouble(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForDouble) MinValidatorForDouble(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForDouble) MinValidatorForShort(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForShort) DecimalMinValidatorForShort(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForShort) DecimalMinValidatorForByte(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.decimal.DecimalMinValidatorForByte) MinValidatorForByte(org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForByte)

Aggregations

AbstractMinValidator (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.AbstractMinValidator)1 MinValidatorForBigDecimal (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForBigDecimal)1 MinValidatorForBigInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForBigInteger)1 MinValidatorForByte (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForByte)1 MinValidatorForDouble (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForDouble)1 MinValidatorForFloat (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForFloat)1 MinValidatorForInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForInteger)1 MinValidatorForLong (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForLong)1 MinValidatorForNumber (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForNumber)1 MinValidatorForShort (org.hibernate.validator.internal.constraintvalidators.bv.number.bound.MinValidatorForShort)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