message.setRowLimit(1313);
return message;
}
public void testSerialize() throws Exception {
RequestMessage copy = UnitTestUtil.helpSerialize(example());
assertTrue(copy.isCallableStatement());
assertEquals(100, copy.getFetchSize());
assertNotNull(copy.getParameterValues());
assertEquals(4, copy.getParameterValues().size());
assertEquals(new Integer(100), copy.getParameterValues().get(0));
assertEquals(new Integer(200), copy.getParameterValues().get(1));
assertEquals(new Integer(300), copy.getParameterValues().get(2));
assertEquals(new Integer(400), copy.getParameterValues().get(3));
assertFalse(copy.isPreparedStatement());
assertEquals("myStyleSheet", copy.getStyleSheet()); //$NON-NLS-1$
assertEquals("myExecutionPayload", copy.getExecutionPayload()); //$NON-NLS-1$
assertEquals(RequestMessage.TXN_WRAP_ON, copy.getTxnAutoWrapMode());
assertTrue(copy.getValidationMode());
assertEquals("xMLFormat", copy.getXMLFormat()); //$NON-NLS-1$
assertEquals(ShowPlan.ON, copy.getShowPlan());
assertEquals(1313, copy.getRowLimit());
}