From b727854fa50490eda8c0e19637e93fce222cc5ca Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Sat, 17 Feb 2024 20:15:05 +0100 Subject: [PATCH] Make SchemaMappingInspectorTests more resilient This commit prevents false positive for test failures, when the ordering of schema inspection statement varies. --- .../graphql/execution/SchemaMappingInspectorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-graphql/src/test/java/org/springframework/graphql/execution/SchemaMappingInspectorTests.java b/spring-graphql/src/test/java/org/springframework/graphql/execution/SchemaMappingInspectorTests.java index 41e36692..fa175402 100644 --- a/spring-graphql/src/test/java/org/springframework/graphql/execution/SchemaMappingInspectorTests.java +++ b/spring-graphql/src/test/java/org/springframework/graphql/execution/SchemaMappingInspectorTests.java @@ -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: []"); }