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);
}
Aggregations