svn commit: r539067 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java

[email protected] Thu, 17 May 2007 18:28:49 -0000
Newsgroups gmane.comp.jakarta.ojb.devel
Message-ID <[email protected]>
Author: arminw
Date: Thu May 17 11:28:48 2007
New Revision: 539067

URL: http://svn.apache.org/viewvc?view=rev&rev=539067
Log:
add new test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java?view=diff&rev=539067&r1=539066&r2=539067
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java Thu May 17 11:28:48 2007
@@ -675,6 +675,20 @@
         pagingPositionTest(name, articleCount, startIndex, endIndex, absoluteIndex, expectedStockValue, allowRelativePlusOneCall);
     }
 
+    public void testPagingPosition_1b()
+    {
+        String name = ojbTestMethodIdentifier();
+        int articleCount = 20;
+        int startIndex = 10;
+        int endIndex = 14;
+        // move to first position
+        int absoluteIndex = 2;
+        int expectedStockValue = 11;
+        boolean allowRelativePlusOneCall = true;
+
+        pagingPositionTest(name, articleCount, startIndex, endIndex, absoluteIndex, expectedStockValue, allowRelativePlusOneCall);
+    }
+
     public void testPagingPosition_2()
     {
         String name = "testPagingPosition_2_" + System.currentTimeMillis();