diff --git a/graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/gql/PostControllerQLIntTest.java b/graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/gql/PostControllerQLIntTest.java index 28993dab6..a59bcabe2 100644 --- a/graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/gql/PostControllerQLIntTest.java +++ b/graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/gql/PostControllerQLIntTest.java @@ -68,7 +68,7 @@ void testCreatePost() { .execute() .path("createPost.id") .entity(Long.class) - .satisfies(id -> assertThat(id).isGreaterThan(0)) + .satisfies(id -> assertThat(id).isPositive()) .path("createPost.title") .entity(String.class) .isEqualTo("JunitTitle") @@ -102,7 +102,7 @@ void testGetPostsByUserName() { .hasSize(3) .path("getPostsByUserName[0].id") .entity(Long.class) - .satisfies(id -> assertThat(id).isGreaterThan(0)) + .satisfies(id -> assertThat(id).isPositive()) .path("getPostsByUserName[0].title") .entity(String.class) .isEqualTo("First Post") @@ -133,7 +133,7 @@ void testAddTagsToPosts() { .execute() .path("addTagsToPost.id") .entity(Long.class) - .satisfies(id -> assertThat(id).isGreaterThan(0)) + .satisfies(id -> assertThat(id).isPositive()) .path("addTagsToPost.title") .entity(String.class) .isEqualTo("Third Post")