protected void assertResultRowCount(int expected,ResultSet rs) throws SQLException {
  int i=0;
  while (rs.next()) {
    i++;
  }
  assertEquals(expected,i);
}

protected void assertResultRowCount ( int expected , ResultSet rs ) throws SQLException { int i = 0 ; while ( rs . next ( ) ) { i ++ ; } assertEquals ( expected , i ) ; }
check that the result set row count matches .
