You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2007/05/17 20:28:49 UTC

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

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();



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org