diff options
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/complex/dbaccess/RowSet.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dbaccess/qa/complex/dbaccess/RowSet.java b/dbaccess/qa/complex/dbaccess/RowSet.java index ad0968a3d3eb..211aa2d3b571 100644 --- a/dbaccess/qa/complex/dbaccess/RowSet.java +++ b/dbaccess/qa/complex/dbaccess/RowSet.java @@ -207,6 +207,9 @@ public class RowSet extends TestCase // absolute positioning testAbsolutePositioning(m_resultSet, m_row); + // position during modify + testModifyPosition(m_resultSet, m_row); + // 3rd test test3(createClone(), m_resultSet); // 4th test @@ -289,6 +292,24 @@ public class RowSet extends TestCase } + void testModifyPosition(XResultSet _resultSet, XRow _row) + { + try + { + final int testPos = 3; + assertTrue("testModifyPosition wants at least " + (testPos+1) + " rows", MAX_FETCH_ROWS >= testPos+1); + assertTrue("testModifyPosition failed on moving to row " + testPos, _resultSet.absolute(testPos)); + UnoRuntime.queryInterface( XRowUpdate.class, _row ).updateString(2, TEST21); + testPosition(_resultSet, _row, testPos, "testModifyPosition"); + UnoRuntime.queryInterface( XResultSetUpdate.class, _resultSet ).cancelRowUpdates(); + } + catch (Exception e) + { + fail("testModifyPosition failed: " + e); + } + } + + void test3(XResultSet clone, XResultSet _resultSet) { try |