Open Jacobvu84 opened 4 years ago
Books books = SerenityRest.lastResponse().body().as(Books.class); jacob.should(seeThatResponse("the trader price should be returned", response -> response.body("trades[0].price", equalTo(books.trades.get(0).getPrice()))) );
Dùng https://codebeautify.org/json-to-java-converter để convert json to java object