/** * Tests the short validation. */ public void testShortMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Short(Short.MIN_VALUE).toString()); valueTest(info, true); }
/** * Tests the short validation. */ public void testShortMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Short(Short.MAX_VALUE).toString()); valueTest(info, true); }
/** * Tests the short validation failure. */ public void testShortBeyondMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Short.MIN_VALUE + "1"); valueTest(info, false); }
/** * Tests the short validation failure. */ public void testShortBeyondMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Short.MAX_VALUE + "1"); valueTest(info, false); } }