/** * Tests the int validation failure. */ public void testIntFailure() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); valueTest(info, false); }
/** * Tests the int validation. */ public void testIntegerMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Integer(Integer.MAX_VALUE).toString()); valueTest(info, true); }
/** * Tests the int validation. */ public void testIntMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Integer(Integer.MIN_VALUE).toString()); valueTest(info, true); }
/** * Tests the int validation. */ public void testInt() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue("0"); valueTest(info, true); }
/** * Tests the int validation failure. */ public void testIntBeyondMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Integer.MIN_VALUE + "1"); valueTest(info, false); }
/** * Tests the int validation failure. */ public void testIntBeyondMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Integer.MAX_VALUE + "1"); valueTest(info, false); }