public void testNext() throws SQLException {
  assertTrue(target.next());
  assertTrue(target.next());
  assertFalse(target.next());
  assertTrue(target.isAfterLast());
  assertFalse(target.next());
  assertFalse(emptyTarget.next());
  target.close();
  try {
    target.next();
    fail("Exception expected");
  }
 catch (  SQLException e) {
  }
}

public void testNext ( ) throws SQLException { assertTrue ( target . next ( ) ) ; assertTrue ( target . next ( ) ) ; assertFalse ( target . next ( ) ) ; assertTrue ( target . isAfterLast ( ) ) ; assertFalse ( target . next ( ) ) ; assertFalse ( emptyTarget . next ( ) ) ; target . close ( ) ; try { target . next ( ) ; fail ( "Exception expected" ) ; } catch ( SQLException e ) { } }
sqlexception checking test fails . clearing of warnings and closed streams not supported .
