断言常用合集

public void testGetModifyContentOfferEndTime() {
Response response = pu.getModifyContentOfferEndTime();
Assert.assertNotNull(response);
Assert.assertEquals(response.code(), 200);
Assert.assertNotNull(response.body().get(“data”));
Assert.assertTrue(response.body().get(“is_success”).asBoolean());
JsonNode data = response.body().get(“data”);
Assert.assertTrue(data.asLong() > 0);
Assert.assertNotNull(response.body().get(“data”).get(“postil_json”));
}

上一篇:关于Debug.Log的一点儿小知识


下一篇:assert 断言