You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/04/01 23:09:32 UTC

svn commit: r643571 - /servicemix/smx4/nmr/trunk/nmr/core/src/test/java/org/apache/servicemix/nmr/core/util/MapToDictionaryTest.java

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);