Ejemplo n.º 1
0
  public void test_updateRef() throws Exception {
    resultSet.next();

    resultSet.updateRef(1, (Ref) null);
    resultSet.updateRef("1", (Ref) null);

    {
      SQLException error = null;
      try {
        resultSet.updateRef(0, (Ref) null);
      } catch (SQLException ex) {
        error = ex;
      }
      Assert.assertNotNull(error);
    }

    {
      SQLException error = null;
      try {
        resultSet.updateRef("0", (Ref) null);
      } catch (SQLException ex) {
        error = ex;
      }
      Assert.assertNotNull(error);
    }
  }