We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5490091 commit 24bf779Copy full SHA for 24bf779
src/test/com/mongodb/util/JSONSerializersTest.java
@@ -101,12 +101,12 @@ public void testLegacySerialization() {
101
assertEquals(buf.toString(), "[ { \"key1\" : \"val1\"} , { \"key2\" : \"val2\"}]");
102
103
// test MAP
104
- HashMap<String, String> testMap = new HashMap<String, String>();
+ TreeMap<String, String> testMap = new TreeMap<String, String>();
105
testMap.put("key1", "val1");
106
testMap.put("key2", "val2");
107
buf = new StringBuilder();
108
serializer.serialize(testMap, buf);
109
- assertEquals(buf.toString(), "{ \"key2\" : \"val2\" , \"key1\" : \"val1\"}");
+ assertEquals(buf.toString(), "{ \"key1\" : \"val1\" , \"key2\" : \"val2\"}");
110
111
// test MAXKEY
112
0 commit comments