assertFalse(iv.isValid(11));
assertFalse(iv.isValid(-1));
}
public void testMinMaxValuesNonInclusive() {
IntegerRangeValidator iv = new IntegerRangeValidator("Failed", 0, 10);
iv.setMinValueIncluded(false);
iv.setMaxValueIncluded(false);
assertFalse(iv.isValid(0));
assertTrue(iv.isValid(1));
assertTrue(iv.isValid(9));
assertFalse(iv.isValid(10));
assertFalse(iv.isValid(11));
assertFalse(iv.isValid(-1));
}