@Test public void testColumnCounts() { for (int i = 0; i < reader.getTableCount(); i++) { String[] names = reader.getColumnNames(i); Class[] types = reader.getColumnTypes(i); assertNotNull(names); assertNotNull(types); assertEquals(names.length, types.length); } }
@Test(expectedExceptions = {ArrayIndexOutOfBoundsException.class}) public void testColumnTypeTableIndexTooLarge() { reader.getColumnTypes(reader.getTableCount()); }