Skip to content

Commit

Permalink
feat: using better alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 23, 2023
1 parent e9f6cdc commit cd5ff1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit cd5ff1a

Please sign in to comment.