public void testGetTableTypesOrder() throws Exception {
  DatabaseMetaData dmd=con.getMetaData();
  ResultSet rs=dmd.getTableTypes();
  String previousType="";
  while (rs.next()) {
    String type=rs.getString(1);
    assertTrue(type.compareTo(previousType) >= 0);
    previousType=type;
  }
  rs.close();
}

public void testGetTableTypesOrder ( ) throws Exception { DatabaseMetaData dmd = con . getMetaData ( ) ; ResultSet rs = dmd . getTableTypes ( ) ; String previousType = "" ; while ( rs . next ( ) ) { String type = rs . getString ( 1 ) ; assertTrue ( type . compareTo ( previousType ) >= 0 ) ; previousType = type ; } rs . close ( ) ; }
test for bug [ 974036 ] bug in 0 . 8rc1 databasemetadata method gettabletypes ( )
