/** * Tests the byte validation failure. */ public void testByteFailure() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); valueTest(info, false); }
/** * Tests the byte validation. */ public void testByteMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Byte(Byte.MAX_VALUE).toString()); valueTest(info, true); }
/** * Tests the byte validation. */ public void testByteMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(new Byte(Byte.MIN_VALUE).toString()); valueTest(info, true); }
/** * Tests the byte validation failure. */ public void testByteBeyondMax() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Byte.MAX_VALUE + "1"); valueTest(info, false); }
/** * Tests the byte validation. */ public void testByte() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue("0"); valueTest(info, true); }
/** * Tests the byte validation failure. */ public void testByteBeyondMin() throws ValidatorException { // Create bean to run test on. ValueBean info = new ValueBean(); info.setValue(Byte.MIN_VALUE + "1"); valueTest(info, false); }