db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1306734 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java
Date Thu, 29 Mar 2012 07:30:36 GMT
Author: kristwaa
Date: Thu Mar 29 07:30:36 2012
New Revision: 1306734

URL: http://svn.apache.org/viewvc?rev=1306734&view=rev
Log:
Make test less greedy on the heap.
Added two extra asserts.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java?rev=1306734&r1=1306733&r2=1306734&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/BlockedByteArrayTest.java
Thu Mar 29 07:30:36 2012
@@ -149,14 +149,15 @@ public class BlockedByteArrayTest
         src.setLength(5*1024*1024); // 5 MB
         src.setLength(7*1024*1024); // 7 MB
         assertEquals(7*1024*1024L, src.length());
-        src.setLength(75*1024*1024); // 75 MB
         src.setLength(0); // 0 bytes
         assertEquals(0L, src.length());
         src.setLength(39*1024*1024); // 39 MB
         src.setLength(39*1024*1024+1); // 39 MB +1 B
         assertEquals(39*1024*1024+1L, src.length());
         src.setLength(39*1024*1024); // 39 MB
+        assertEquals(39*1024*1024L, src.length());
         src.setLength(39*1024*1024); // 39 MB
+        assertEquals(39*1024*1024L, src.length());
         src.setLength(-1); // Invalid value - causes array to be truncated.
         assertEquals(0L, src.length());
     }



Mime
View raw message