diff --git a/graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/gql/AuthorEntityQueryTest.java b/graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/gql/AuthorEntityQueryTest.java index 6f6527275..c3031d77e 100644 --- a/graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/gql/AuthorEntityQueryTest.java +++ b/graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/gql/AuthorEntityQueryTest.java @@ -92,7 +92,7 @@ void testFindAuthorByEmailId() { .errors() .satisfy( responseErrors -> { - assertThat(responseErrors.size()).isEqualTo(1); + assertThat(responseErrors).hasSize(1); assertThat(responseErrors.getFirst().getPath()) .isEqualTo("findAuthorByEmailId"); assertThat(responseErrors.getFirst().getErrorType())