super(name, xmltest);
}
public void testConfigure() throws Throwable
{
SimpleBean bean = configure();
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());
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());
unconfigure(bean);
assertEquals(null, bean.getAString());
assertEquals(null, bean.getAByte());
assertEquals(null, bean.getABoolean());
// TODO character
// assertEquals(null, bean.getACharacter());
assertEquals(null, bean.getAShort());
assertEquals(null, bean.getAnInt());
assertEquals(null, bean.getALong());
assertEquals(null, bean.getAFloat());
assertEquals(null, bean.getADouble());
assertEquals(null, bean.getADate());
assertEquals(null, bean.getABigDecimal());
assertEquals(null, 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());
assertEquals(null, bean.getANumber());
assertEquals(null, bean.getOverloadedProperty());
}