예제 #1
0
  @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);
    }
  }
예제 #2
0
 @Test(expectedExceptions = {ArrayIndexOutOfBoundsException.class})
 public void testColumnTypeTableIndexTooLarge() {
   reader.getColumnTypes(reader.getTableCount());
 }