Author: clebert.suconic(a)jboss.com
Date: 2010-11-16 22:00:47 -0500 (Tue, 16 Nov 2010)
New Revision: 9904
Modified:
branches/Branch_New_Paging_preMerge/tests/src/org/hornetq/tests/unit/util/SoftValueMapTest.java
Log:
fix test
Modified:
branches/Branch_New_Paging_preMerge/tests/src/org/hornetq/tests/unit/util/SoftValueMapTest.java
===================================================================
---
branches/Branch_New_Paging_preMerge/tests/src/org/hornetq/tests/unit/util/SoftValueMapTest.java 2010-11-17
02:25:06 UTC (rev 9903)
+++
branches/Branch_New_Paging_preMerge/tests/src/org/hornetq/tests/unit/util/SoftValueMapTest.java 2010-11-17
03:00:47 UTC (rev 9904)
@@ -46,7 +46,7 @@
SoftValueHashMap<Long, byte[]> softCache = new SoftValueHashMap<Long,
byte[]>();
- final int MAX_ELEMENTS = 10000;
+ final int MAX_ELEMENTS = 1000;
for (long i = 0 ; i < MAX_ELEMENTS; i++)
{
@@ -54,7 +54,7 @@
}
- assertTrue(softCache.size() < 100);
+ assertTrue(softCache.size() < MAX_ELEMENTS);
System.out.println("Soft cache has " + softCache.size() + "
elements");
}