private void validateProcedures(ResultSet procedures,List<ProcedureTestData> expectedProcedures) throws Exception {
  try {
    int procedureCount=0;
    while (procedures.next()) {
      if (procedureCount < expectedProcedures.size()) {
        ProcedureTestData expectedProcedure=expectedProcedures.get(procedureCount);
        Map<ProcedureMetaData,Object> rules=expectedProcedure.getSpecificValidationRules(getDefaultValueValidationRules());
        checkValidationRulesComplete(rules);
        validateRowValues(procedures,rules);
      }
      procedureCount++;
    }
    assertEquals("Unexpected number of procedures returned",expectedProcedures.size(),procedureCount);
  }
  finally {
    closeQuietly(procedures);
  }
}

private void validateProcedures ( ResultSet procedures , List < ProcedureTestData > expectedProcedures ) throws Exception { try { int procedureCount = 0 ; while ( procedures . next ( ) ) { if ( procedureCount < expectedProcedures . size ( ) ) { ProcedureTestData expectedProcedure = expectedProcedures . get ( procedureCount ) ; Map < ProcedureMetaData , Object > rules = expectedProcedure . getSpecificValidationRules ( getDefaultValueValidationRules ( ) ) ; checkValidationRulesComplete ( rules ) ; validateRowValues ( procedures , rules ) ; } procedureCount ++ ; } assertEquals ( "Unexpected number of procedures returned" , expectedProcedures . size ( ) , procedureCount ) ; } finally { closeQuietly ( procedures ) ; } }
validates the procedures resultset against expectedprocedures .
