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 77e5c02 commit 6328315Copy full SHA for 6328315
bson/src/test/unit/org/bson/DocumentTest.java
@@ -86,7 +86,7 @@ public void toJsonShouldNotReorderIdField() {
86
Document d = new Document().append("x", 1)
87
.append("y", Collections.singletonList("one"))
88
.append("_id", "1");
89
- assertEquals(new DocumentCodec().decode(new JsonReader(d.toJson()), DecoderContext.builder().build()), d);
+ assertEquals("{\"x\": 1, \"y\": [\"one\"], \"_id\": \"1\"}", d.toJson());
90
}
91
92
// Test in Java to make sure none of the casts result in compiler warnings or class cast exceptions
0 commit comments