servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r643571 - /servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java
Date Tue, 01 Apr 2008 21:09:32 GMT
Author: gnodet
Date: Tue Apr  1 14:09:29 2008
New Revision: 643571

URL: http://svn.apache.org/viewvc?rev=643571&view=rev
Log:
Fix MapToDictionaryTest junit test

Modified:
    servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java

Modified: servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java?rev=643571&r1=643570&r2=643571&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java
(original)
+++ servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java
Tue Apr  1 14:09:29 2008
@@ -20,6 +20,7 @@
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.TreeMap;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
@@ -45,7 +46,7 @@
 
     @Test
     public void test() {
-        Map<Integer, Boolean> map = new HashMap<Integer, Boolean>();
+        Map<Integer, Boolean> map = new TreeMap<Integer, Boolean>();
         map.put(3, true);
         map.put(5, false);
         Dictionary<Integer, Boolean> dic = new MapToDictionary(map);



Mime
View raw message