private void validateTableMetaDataSingleRow(String tableNamePattern,String[] types,Map<TableMetaData,Object> validationRules) throws Exception {
  checkValidationRulesComplete(validationRules);
  try (ResultSet tables=dbmd.getTables(null,null,tableNamePattern,types)){
    assertTrue("Expected row in table metadata",tables.next());
    validateRowValues(tables,validationRules);
    assertFalse("Expected only one row in result set",tables.next());
  }
 }

private void validateTableMetaDataSingleRow ( String tableNamePattern , String [ ] types , Map < TableMetaData , Object > validationRules ) throws Exception { checkValidationRulesComplete ( validationRules ) ; try ( ResultSet tables = dbmd . getTables ( null , null , tableNamePattern , types ) ) { assertTrue ( "Expected row in table metadata" , tables . next ( ) ) ; validateRowValues ( tables , validationRules ) ; assertFalse ( "Expected only one row in result set" , tables . next ( ) ) ; } }
helper method for test methods that retrieve a single metadata row .
