assertNotNull("Expected data truncation warning", warning);
for (int i = 0; i < expectedRow.length; i++) {
assertEquals("column #" + (i + 1), expectedRow[i], actualRow[i]);
if (warning instanceof DataTruncation) {
DataTruncation dt = (DataTruncation) warning;
assertEquals("index", index, dt.getIndex());
assertEquals("parameter", parameter, dt.getParameter());
assertEquals("read", read, dt.getRead());
assertEquals("dataSize", dataSize, dt.getDataSize());
assertEquals("transferSize", transferSize, dt.getTransferSize());
} else {
fail("Unexpected warning", warning);
}
assertNull("Chained warnings not expected on network client",