Skip to content

Commit 8fc6df0

Browse files
Follow changes in data commons.
Adapt to new metadata rendering format. See: #4939
1 parent 6a0d882 commit 8fc6df0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/aot/MongoRepositoryMetadataTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import java.io.IOException;
2525
import java.nio.charset.StandardCharsets;
26+
import java.util.List;
2627

2728
import org.junit.jupiter.api.Disabled;
2829
import org.junit.jupiter.api.Test;
@@ -150,7 +151,7 @@ void shouldDocumentAggregation() throws IOException {
150151

151152
assertThatJson(json).inPath("$.methods[?(@.name == 'findAllLastnames')].query").isArray().element(0).isObject()
152153
.containsEntry("pipeline",
153-
"[{ '$match' : { 'last_name' : { '$ne' : null } } }, { '$project': { '_id' : '$last_name' } }]");
154+
List.of("{ '$match' : { 'last_name' : { '$ne' : null } } }", "{ '$project': { '_id' : '$last_name' } }"));
154155
}
155156

156157
@Test // GH-4964
@@ -165,7 +166,7 @@ void shouldDocumentPipelineUpdate() throws IOException {
165166

166167
assertThatJson(json).inPath("$.methods[?(@.name == 'findAndIncrementVisitsViaPipelineByLastname')].query").isArray()
167168
.element(0).isObject().containsEntry("filter", "{'lastname':?0}").containsEntry("update-pipeline",
168-
"[{ '$set' : { 'visits' : { '$ifNull' : [ {'$add' : [ '$visits', ?1 ] }, ?1 ] } } }]");
169+
List.of("{ '$set' : { 'visits' : { '$ifNull' : [ {'$add' : [ '$visits', ?1 ] }, ?1 ] } } }"));
169170
}
170171

171172
@Test // GH-4964

0 commit comments

Comments
 (0)