Package jp.co.ntt.oss.mapper.stub

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


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

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


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

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

  public void tearDown() throws Exception {
  }

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

  public void tearDown() throws Exception {
  }

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

  public void tearDown() throws Exception {
  }

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

  public void tearDown() throws Exception {
  }

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

  public void tearDown() throws Exception {
  }

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

  public void tearDown() throws Exception {
  }

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

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

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

  public void tearDown() throws Exception {
  }

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

TOP

Related Classes of jp.co.ntt.oss.mapper.stub.ResultSetStub

Copyright © 2018 www.massapicom. 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.