Skip to content

Commit bf10f72

Browse files
committed
Polishing.
Simplify assertions. See #3552. Original pull request: #3565.
1 parent 1c652cc commit bf10f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/UpdateMapperUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ void numericKeyForMap() {
10961096
Document mappedUpdate = mapper.getMappedObject(update.getUpdateObject(),
10971097
context.getPersistentEntity(EntityWithObjectMap.class));
10981098

1099-
assertThat(mappedUpdate).isEqualTo(Document.parse("{\"$set\": {\"map.601218778970110001827396\": \"testing\"}}"));
1099+
assertThat(mappedUpdate).isEqualTo("{\"$set\": {\"map.601218778970110001827396\": \"testing\"}}");
11001100
}
11011101

11021102
@Test // GH-3552
@@ -1107,7 +1107,7 @@ void numericKeyInMapOfNestedPath() {
11071107
context.getPersistentEntity(EntityWithObjectMap.class));
11081108

11091109
assertThat(mappedUpdate)
1110-
.isEqualTo(Document.parse("{\"$set\": {\"map.601218778970110001827396.value\": \"testing\"}}"));
1110+
.isEqualTo("{\"$set\": {\"map.601218778970110001827396.value\": \"testing\"}}");
11111111
}
11121112

11131113
static class DomainTypeWrappingConcreteyTypeHavingListOfInterfaceTypeAttributes {

0 commit comments

Comments
 (0)