Search in sources :

Example 1 with NegativeOrZeroValidatorForLong

use of org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForLong in project hibernate-validator by hibernate.

the class SignValidatorForNumberTest method testNegativeOrZero.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void testNegativeOrZero(NegativeOrZero m) {
    ConstraintValidator validator = new NegativeOrZeroValidatorForNumber();
    validator.initialize(m);
    testSignNumber(validator, false, false);
    validator = new NegativeOrZeroValidatorForBigDecimal();
    validator.initialize(m);
    testSignBigDecimal(validator, false, false);
    validator = new NegativeOrZeroValidatorForBigInteger();
    validator.initialize(m);
    testSignBigInteger(validator, false, false);
    validator = new NegativeOrZeroValidatorForLong();
    validator.initialize(m);
    testSignLong(validator, false, false);
    validator = new NegativeOrZeroValidatorForFloat();
    validator.initialize(m);
    testSignFloat(validator, false, false);
    validator = new NegativeOrZeroValidatorForDouble();
    validator.initialize(m);
    testSignDouble(validator, false, false);
    validator = new NegativeOrZeroValidatorForShort();
    validator.initialize(m);
    testSignShort(validator, false, false);
    validator = new NegativeOrZeroValidatorForByte();
    validator.initialize(m);
    testSignByte(validator, false, false);
    validator = new NegativeOrZeroValidatorForInteger();
    validator.initialize(m);
    testSignInteger(validator, false, false);
}
Also used : NegativeOrZeroValidatorForBigDecimal(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForBigDecimal) NegativeOrZeroValidatorForByte(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForByte) ConstraintValidator(jakarta.validation.ConstraintValidator) NegativeOrZeroValidatorForNumber(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForNumber) NegativeOrZeroValidatorForBigInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForBigInteger) NegativeOrZeroValidatorForShort(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForShort) NegativeOrZeroValidatorForLong(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForLong) NegativeOrZeroValidatorForDouble(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForDouble) NegativeOrZeroValidatorForInteger(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForInteger) NegativeOrZeroValidatorForFloat(org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForFloat)

Aggregations

ConstraintValidator (jakarta.validation.ConstraintValidator)1 NegativeOrZeroValidatorForBigDecimal (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForBigDecimal)1 NegativeOrZeroValidatorForBigInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForBigInteger)1 NegativeOrZeroValidatorForByte (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForByte)1 NegativeOrZeroValidatorForDouble (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForDouble)1 NegativeOrZeroValidatorForFloat (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForFloat)1 NegativeOrZeroValidatorForInteger (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForInteger)1 NegativeOrZeroValidatorForLong (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForLong)1 NegativeOrZeroValidatorForNumber (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForNumber)1 NegativeOrZeroValidatorForShort (org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeOrZeroValidatorForShort)1