Skip to content

Commit 1ca2f5c

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

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
@@ -1166,7 +1166,7 @@ void numericKeyForMap() {
11661166
Document mappedUpdate = mapper.getMappedObject(update.getUpdateObject(),
11671167
context.getPersistentEntity(EntityWithObjectMap.class));
11681168

1169-
assertThat(mappedUpdate).isEqualTo(Document.parse("{\"$set\": {\"map.601218778970110001827396\": \"testing\"}}"));
1169+
assertThat(mappedUpdate).isEqualTo("{\"$set\": {\"map.601218778970110001827396\": \"testing\"}}");
11701170
}
11711171

11721172
@Test // GH-3552
@@ -1177,7 +1177,7 @@ void numericKeyInMapOfNestedPath() {
11771177
context.getPersistentEntity(EntityWithObjectMap.class));
11781178

11791179
assertThat(mappedUpdate)
1180-
.isEqualTo(Document.parse("{\"$set\": {\"map.601218778970110001827396.value\": \"testing\"}}"));
1180+
.isEqualTo("{\"$set\": {\"map.601218778970110001827396.value\": \"testing\"}}");
11811181
}
11821182

11831183
static class DomainTypeWrappingConcreteyTypeHavingListOfInterfaceTypeAttributes {

0 commit comments

Comments
 (0)