【发布时间】:2021-11-07 17:59:02
【问题描述】:
是否有机会使用 Rest Assured 库将断言消息添加到我的方法中?例如,我想在这个链方法中写一个断言消息,而不使用 System.out.println()。
given().spec(requestSpecBuilder).when().get(commentsEndPoint).then().
spec(responseSpecification).assertThat().contentType(ContentType.JSON.withCharset("UTF-8"))
【问题讨论】:
标签: java rest-assured hamcrest