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");
}
}