Make SchemaMappingInspectorTests more resilient

This commit prevents false positive for test failures, when the ordering
of schema inspection statement varies.
This commit is contained in:
Brian Clozel
2024-02-17 20:15:05 +01:00
parent 338ca0f0b0
commit b727854fa5

View File

@@ -554,7 +554,7 @@ class SchemaMappingInspectorTests {
assertThatReport(report).hasUnmappedFieldCount(1).hasSkippedTypeCount(0);
assertThat(report.toString())
.contains("GraphQL schema inspection:", "Unmapped fields: {Book=[missing]}", "Unmapped registrations:",
"Book.fetcher=BookController#fetcher[1 args]", " Query.paginatedBooks=BookController#paginatedBooks[0 args]",
"Book.fetcher=BookController#fetcher[1 args]", "Query.paginatedBooks=BookController#paginatedBooks[0 args]",
"Query.bookObject=BookController#bookObject[1 args]", "Query.bookById=BookController#bookById[1 args]",
"Skipped types: []");
}