assertEquals(SimpleInterface.stringValue, test.getString());
}
public void testNullPrimitives() throws Exception
{
SimpleInterface test = createNullCompositeDataProxy();
assertNull(test.getBigDecimal());
assertNull(test.getBigInteger());
assertNull(test.getBoolean());
try
{
test.isPrimitiveBoolean();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getByte());
try
{
test.getPrimitiveByte();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getCharacter());
try
{
test.getPrimitiveChar();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getDate());
assertNull(test.getDouble());
try
{
test.getPrimitiveDouble();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getFloat());
try
{
test.getPrimitiveFloat();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getInteger());
try
{
test.getPrimitiveInt();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getLong());
try
{
test.getPrimitiveLong();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(test.getObjectName());
assertNull(test.getShort());
try
{
test.getPrimitiveShort();
fail("Should not be here");
}
catch (AssertionFailedError e)
{
throw e;
}
catch (Throwable t)
{
checkThrowableDeep(IllegalArgumentException.class, t);
}
assertNull(SimpleInterface.stringValue, test.getString());
}