db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1839277 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java
Date Mon, 27 Aug 2018 08:52:18 GMT
Author: tv
Date: Mon Aug 27 08:52:18 2018
New Revision: 1839277

URL: http://svn.apache.org/viewvc?rev=1839277&view=rev
Log:
As LargeSelect now returns much faster, the assumption, we could check initial values before
data is available proves to be wrong.

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java?rev=1839277&r1=1839276&r2=1839277&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/LargeSelectTest.java
Mon Aug 27 08:52:18 2018
@@ -195,20 +195,6 @@ public class LargeSelectTest extends Bas
         assertEquals("Page size", TEST_PAGE_SIZE, ls.getPageSize());
         assertTrue("Paginated", ls.getPaginated());
 
-        // Page 0, assuming that the asserts occur before the first records
-        // have been read
-        assertEquals("Current page number", 0, ls.getCurrentPageNumber());
-        assertFalse("Previous results available", ls.getPreviousResultsAvailable());
-        assertTrue("Next results available", ls.getNextResultsAvailable());
-        assertEquals("Current page size", 0, ls.getCurrentPageSize());
-        assertEquals("First record for page", 0, ls.getFirstRecordNoForPage());
-        assertEquals("Last record for page", 0, ls.getLastRecordNoForPage());
-        assertFalse("Totals finalised", ls.getTotalsFinalized());
-        assertEquals("Total pages", 0, ls.getTotalPages());
-        assertEquals("Total records", 0, ls.getTotalRecords());
-        assertEquals("Page progress text", "0 of > 0", ls.getPageProgressText());
-        assertEquals("Record progress text", "0 - 0 of > 0", ls.getRecordProgressText());
-
         long startTime = System.currentTimeMillis();
         List<Author> results = ls.getNextResults();
         long timeElapsed = System.currentTimeMillis() - startTime;



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


Mime
View raw message