Skip to content

Commit 6328315

Browse files
committed
JAVA-3353: update Document#toJson test
1 parent 77e5c02 commit 6328315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/src/test/unit/org/bson/DocumentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void toJsonShouldNotReorderIdField() {
8686
Document d = new Document().append("x", 1)
8787
.append("y", Collections.singletonList("one"))
8888
.append("_id", "1");
89-
assertEquals(new DocumentCodec().decode(new JsonReader(d.toJson()), DecoderContext.builder().build()), d);
89+
assertEquals("{\"x\": 1, \"y\": [\"one\"], \"_id\": \"1\"}", d.toJson());
9090
}
9191

9292
// Test in Java to make sure none of the casts result in compiler warnings or class cast exceptions

0 commit comments

Comments
 (0)