8889909192939495
} public void testIntegerAttribute() throws Throwable { Object value = new Integer("1234"); SimpleBean bean = configureSimpleBean("anInt", value); assertEquals(value, bean.getAnInt()); }
9596979899100101102
} public void testLongAttribute() throws Throwable { Object value = new Long("12345"); SimpleBean bean = configureSimpleBean("aLong", value); assertEquals(value, bean.getALong()); }
102103104105106107108109
} public void testFloatAttribute() throws Throwable { Object value = new Float("3.14"); SimpleBean bean = configureSimpleBean("aFloat", value); assertEquals(value, bean.getAFloat()); }
109110111112113114115116
} public void testDoubleAttribute() throws Throwable { Object value = new Double("3.14e12"); SimpleBean bean = configureSimpleBean("aDouble", value); assertEquals(value, bean.getADouble()); }
116117118119120121122123
} public void testDateAttribute() throws Throwable { Object value = createDate(2001, 01, 01); SimpleBean bean = configureSimpleBean("aDate", value); assertEquals(value, bean.getADate()); }
123124125126127128129130
} public void testBigDecimalAttribute() throws Throwable { Object value = new BigDecimal("12e4"); SimpleBean bean = configureSimpleBean("aBigDecimal", value); assertEquals(value, bean.getABigDecimal()); }
130131132133134135136137
} public void testBigIntegerAttribute() throws Throwable { Object value = new BigInteger("123456"); SimpleBean bean = configureSimpleBean("aBigInteger", value); assertEquals(value, bean.getABigInteger()); }
137138139140141142143144
} public void testPrimitiveByteAttribute() throws Throwable { Byte value = new Byte("12"); SimpleBean bean = configureSimpleBean("abyte", value); assertEquals(value.byteValue(), bean.getAbyte()); }
144145146147148149150151
} public void testPrimitiveBooleanAttribute() throws Throwable { Boolean value = Boolean.TRUE; SimpleBean bean = configureSimpleBean("aboolean", value); assertEquals(value.booleanValue(), bean.isAboolean()); }
159160161162163164165166
} */ public void testPrimitiveShortAttribute() throws Throwable { Short value = new Short("123"); SimpleBean bean = configureSimpleBean("ashort", value); assertEquals(value.shortValue(), bean.getAshort()); }