Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit 357fa4a

Browse files
committed
fix jsonpath assertion
1 parent 674f1ea commit 357fa4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql-java-spring-webflux/src/test/java/graphql/spring/web/reactive/components/GraphQLControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void testPostRequest() throws Exception {
6868
.exchange()
6969
.expectStatus().isOk()
7070
.expectBody()
71-
.jsonPath("data", is("bar"));
71+
.jsonPath("data").isEqualTo("bar");
7272

7373
assertThat(captor.getAllValues().size(), is(1));
7474

@@ -101,7 +101,7 @@ public void testGetRequest() throws Exception {
101101
.exchange()
102102
.expectStatus().isOk()
103103
.expectBody()
104-
.jsonPath("data", is("foo"));
104+
.jsonPath("data").isEqualTo("bar");
105105

106106
assertThat(captor.getAllValues().size(), is(1));
107107

0 commit comments

Comments
 (0)