Examples of ResultSetStub


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

    assertEquals(Types.OTHER, type.intValue());
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    LongDataMapper dm = new LongDataMapper();
    assertNotNull(dm);
    try {
      Long result = (Long) dm.getObject(rset, 123);
      assertNotNull(result);
      assertEquals("getLong(123)", rset.getCalled());
      result = (Long) dm.getObject(rset, 999);
      assertNull(result);
      assertEquals("getLong(999)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    URLDataMapper dm = new URLDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getURL(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    RowIdDataMapper dm = new RowIdDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getRowId(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    TimeDataMapper dm = new TimeDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getTime(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    TimestampDataMapper dm = new TimestampDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getTimestamp(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

    assertEquals(Types.OTHER, type.intValue());
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    IntegerDataMapper dm = new IntegerDataMapper();
    assertNotNull(dm);
    try {
      Integer result = (Integer) dm.getObject(rset, 123);
      assertNotNull(result);
      assertEquals("getInt(123)", rset.getCalled());
      result = (Integer) dm.getObject(rset, 999);
      assertNull(result);
      assertEquals("getInt(999)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    NClobDataMapper dm = new NClobDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getNClob(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    ClobDataMapper dm = new ClobDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getClob(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    ArrayDataMapper dm = new ArrayDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getArray(123)", rset.getCalled());
    } catch (SQLException e) {
      fail("exception thrown");
    }
  }
View Full Code Here

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

  public void tearDown() throws Exception {
  }

  @Test
  public final void testGetObject() {
    ResultSetStub rset = new ResultSetStub();
    StringDataMapper dm = new StringDataMapper();
    assertNotNull(dm);
    try {
      dm.getObject(rset, 123);
      assertEquals("getString(123)", rset.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.