public void testIsCurrency(){
  try {
    assertFalse(rsmd.isCurrency(1));
  }
 catch (  SQLException e1) {
    fail("ResultSetMetaDataTest.testGetScale()" + e1.getMessage());
    e1.printStackTrace();
  }
  try {
    rsmd.isCurrency(0);
    fail("SQLException is not thrown");
  }
 catch (  SQLException e) {
  }
  try {
    rsmd.isCurrency(5);
    fail("SQLException is not thrown");
  }
 catch (  SQLException e) {
  }
  try {
    rs.close();
    rsmd.isCurrency(1);
    fail("Exception expected");
  }
 catch (  SQLException e) {
  }
}

public void testIsCurrency ( ) { try { assertFalse ( rsmd . isCurrency ( 1 ) ) ; } catch ( SQLException e1 ) { fail ( "ResultSetMetaDataTest.testGetScale()" + e1 . getMessage ( ) ) ; e1 . printStackTrace ( ) ; } try { rsmd . isCurrency ( 0 ) ; fail ( "SQLException is not thrown" ) ; } catch ( SQLException e ) { } try { rsmd . isCurrency ( 5 ) ; fail ( "SQLException is not thrown" ) ; } catch ( SQLException e ) { } try { rs . close ( ) ; rsmd . isCurrency ( 1 ) ; fail ( "Exception expected" ) ; } catch ( SQLException e ) { } }
tests fail : always returns false . exceptions and tests non numeric fields fail , failing statements commented out . feature only partially implemented . may be an optional feature . not supported .
