Examples of PreparedStatementStub


Examples of jp.co.ntt.oss.mapper.stub.PreparedStatementStub

    }
  }

  @Test
  public final void testSetObject() {
    PreparedStatementStub pstmt = new PreparedStatementStub();
    SQLXMLDataMapper dm = new SQLXMLDataMapper();
    assertNotNull(dm);
    try {
      dm.setObject(pstmt, 123, new SQLXMLStub());
      assertEquals("setSQLXML(123, jp.co.ntt.oss.mapper.stub.SQLXMLStub)", pstmt
          .getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

Examples of jp.co.ntt.oss.mapper.stub.PreparedStatementStub

    }
  }

  @Test
  public final void testSetObject() {
    PreparedStatementStub pstmt = new PreparedStatementStub();
    BigDecimalDataMapper dm = new BigDecimalDataMapper();
    assertNotNull(dm);
    try {
      dm.setObject(pstmt, 123, new BigDecimal(1234));
      assertEquals(
          "setBigDecimal(123, java.math.BigDecimal)",
          pstmt.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.