Skip to content

Commit b727854

Browse files
committed
Make SchemaMappingInspectorTests more resilient
This commit prevents false positive for test failures, when the ordering of schema inspection statement varies.
1 parent 338ca0f commit b727854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-graphql/src/test/java/org/springframework/graphql/execution/SchemaMappingInspectorTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ void reportUnmappedField() {
554554
assertThatReport(report).hasUnmappedFieldCount(1).hasSkippedTypeCount(0);
555555
assertThat(report.toString())
556556
.contains("GraphQL schema inspection:", "Unmapped fields: {Book=[missing]}", "Unmapped registrations:",
557-
"Book.fetcher=BookController#fetcher[1 args]", " Query.paginatedBooks=BookController#paginatedBooks[0 args]",
557+
"Book.fetcher=BookController#fetcher[1 args]", "Query.paginatedBooks=BookController#paginatedBooks[0 args]",
558558
"Query.bookObject=BookController#bookObject[1 args]", "Query.bookById=BookController#bookById[1 args]",
559559
"Skipped types: []");
560560
}

0 commit comments

Comments
 (0)