示例#1
0
 /** @throws Exception */
 public void testIsLast() throws Exception {
   MockResultSet rs = new MockResultSet();
   ArrayMap rowData = new ArrayMap();
   Timestamp value = new Timestamp(0);
   rowData.put("hoge", value);
   rs.addRowData(rowData);
   assertFalse(rs.isLast());
   assertTrue(rs.next());
   assertTrue(rs.isLast());
 }
示例#2
0
 /** @throws Exception */
 public void testLast() throws Exception {
   MockResultSet rs = new MockResultSet();
   rs.setType(ResultSet.TYPE_SCROLL_INSENSITIVE);
   ArrayMap rowData = new ArrayMap();
   Timestamp value = new Timestamp(0);
   rowData.put("hoge", value);
   rs.addRowData(rowData);
   assertTrue(rs.last());
   assertTrue(rs.isLast());
 }