Commit 539b4dce authored by xiamengchen's avatar xiamengchen

fix:修改文章FAQ列表校验条件

parent 2f47bea2
......@@ -157,9 +157,8 @@ public class ForwardAndRead implements Authorization {
param.put("pageIndex", 1);
param.put("pageSize", 2);
response = network.getResponse(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS);
int totalCount = response.jsonPath().getInt("data.totalCount");
List<Object> lists = response.jsonPath().getList("data.list");
Assert.assertEquals(totalCount, lists.size(), network.message(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS, "FAQ总数与FAQ列表大小不一致", response.body().asString()));
Assert.assertTrue(lists.size() > 0, network.message(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS, "未获取到文章FAQs", response.body().asString()));
questionId = response.jsonPath().getString("data.list[0].questionId");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment