Skip to content

Commit

Permalink
Simplify JSON Path verification in PaymentProcessIntegrationTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed May 23, 2024
1 parent 28ddb68 commit 4820e51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ private void verifyOrderTaken(MockHttpServletResponse response) throws Exception
.doesNotHave(linkWithRel(UPDATE_REL))
.doesNotHave(linkWithRel(CANCEL_REL))
.doesNotHave(linkWithRel(PAYMENT_REL))
.bodyJson().hasPathSatisfying("$.status", it -> assertThat(it).isEqualTo("Delivered"));
.bodyJson().extractingPath("$.status").isEqualTo("Delivered");

LOG.info("Final order state: " + result.getMvcResult().getResponse().getContentAsString());
}
Expand Down

0 comments on commit 4820e51

Please sign in to comment.