super(name);
}
public void testProperty() throws Exception
{
TestProperty bean = unmarshalJavaBean(TestProperty.class);
assertEquals(stringValue, bean.getAString());
assertEquals(byteValue, bean.getAByte());
assertEquals(booleanValue, bean.getABoolean());
// TODO character
// assertEquals(characterValue, bean.getACharacter());
assertEquals(shortValue, bean.getAShort());
assertEquals(integerValue, bean.getAnInt());
assertEquals(longValue, bean.getALong());
assertEquals(floatValue, bean.getAFloat());
assertEquals(doubleValue, bean.getADouble());
// TODO assertEquals(dateValue, bean.getADate());
assertEquals(bigDecimalValue, bean.getABigDecimal());
assertEquals(bigIntegerValue, bean.getABigInteger());
assertEquals(byteValue.byteValue(), bean.getAbyte());
assertEquals(booleanValue.booleanValue(), bean.isAboolean());
// TODO character
// assertEquals(characterValue.charValue(), bean.getAchar());
assertEquals(shortValue.shortValue(), bean.getAshort());
assertEquals(integerValue.intValue(), bean.getAnint());
assertEquals(longValue.longValue(), bean.getAlong());
assertEquals(floatValue.floatValue(), bean.getAfloat());
assertEquals(doubleValue.doubleValue(), bean.getAdouble());
Number number = bean.getANumber();
assertEquals(Long.class, number.getClass());
assertEquals(longValue, number);
assertEquals(stringValue, bean.getOverloadedProperty());
// An all uppercase property
assertEquals("XYZ", bean.getXYZ());
assertEquals("abc", bean.getAbc());
}