114115116117118119120121
} public void testDateAttribute() throws Throwable { Object value = createDate(2001, 1, 1); SimpleBean bean = configureSimpleBean("aDate", value); assertEquals(value, bean.getADate()); }
121122123124125126127128
} public void testBigDecimalAttribute() throws Throwable { Object value = new BigDecimal("12e4"); SimpleBean bean = configureSimpleBean("aBigDecimal", value); assertEquals(value, bean.getABigDecimal()); }
128129130131132133134135
} public void testBigIntegerAttribute() throws Throwable { Object value = new BigInteger("123456"); SimpleBean bean = configureSimpleBean("aBigInteger", value); assertEquals(value, bean.getABigInteger()); }
135136137138139140141142
} public void testPrimitiveByteAttribute() throws Throwable { Byte value = new Byte("12"); SimpleBean bean = configureSimpleBean("abyte", value); assertEquals(value.byteValue(), bean.getAbyte()); }
142143144145146147148149
} public void testPrimitiveBooleanAttribute() throws Throwable { Boolean value = Boolean.TRUE; SimpleBean bean = configureSimpleBean("aboolean", value); assertEquals(value.booleanValue(), bean.isAboolean()); }
149150151152153154155156
} public void testPrimitiveCharacterAttribute() throws Throwable { Character value = new Character('a'); SimpleBean bean = configureSimpleBean("achar", value); assertEquals(value.charValue(), bean.getAchar()); }
156157158159160161162163
} public void testPrimitiveShortAttribute() throws Throwable { Short value = new Short("123"); SimpleBean bean = configureSimpleBean("ashort", value); assertEquals(value.shortValue(), bean.getAshort()); }
163164165166167168169170
} public void testPrimitiveIntegerAttribute() throws Throwable { Integer value = new Integer("1234"); SimpleBean bean = configureSimpleBean("anint", value); assertEquals(value.intValue(), bean.getAnint()); }
170171172173174175176177
} public void testPrimitiveLongAttribute() throws Throwable { Long value = new Long("12345"); SimpleBean bean = configureSimpleBean("along", value); assertEquals(value.longValue(), bean.getAlong()); }
177178179180181182183184
} public void testPrimitiveFloatAttribute() throws Throwable { Float value = new Float("3.14"); SimpleBean bean = configureSimpleBean("afloat", value); assertEquals(value.floatValue(), bean.getAfloat()); }