[jboss-svn-commits] JBL Code SVN: r6676 - labs/jbossrules/trunk/drools-core/src/test/java/org/drools/util
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat Oct 7 08:47:13 EDT 2006
Author: mark.proctor at jboss.com
Date: 2006-10-07 08:47:12 -0400 (Sat, 07 Oct 2006)
New Revision: 6676
Modified:
labs/jbossrules/trunk/drools-core/src/test/java/org/drools/util/ObjectHashMapTest.java
Log:
JBRULES-498 Optimised HashMap implementations
-Fixed ObjectHashMapTest
Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/util/ObjectHashMapTest.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/util/ObjectHashMapTest.java 2006-10-07 12:38:10 UTC (rev 6675)
+++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/util/ObjectHashMapTest.java 2006-10-07 12:47:12 UTC (rev 6676)
@@ -8,7 +8,7 @@
public void testChechExistsFalse() {
ObjectHashMap map = new ObjectHashMap();
Cheese stilton = new Cheese("stilton", 5);
- map.put(new Integer(1), stilton);
+ map.put(new Integer(1), stilton, false);
Cheese c = (Cheese) map.get(new Integer(1));
assertSame(stilton, c);
@@ -43,9 +43,8 @@
public void testChechExistsTrue() {
ObjectHashMap map = new ObjectHashMap();
- map.setCheckExists( true );
Cheese stilton = new Cheese("stilton", 5);
- map.put(new Integer(1), stilton);
+ map.put(new Integer(1), stilton, true);
Cheese c = (Cheese) map.get(new Integer(1));
assertSame(stilton, c);
More information about the jboss-svn-commits
mailing list