use of com.shizhefei.utils.ArrayListMap in project MVCHelper by LuckyJayce.
the class TestCaseFragment method getTestCaseDatas.
@Override
protected List<TestCaseData> getTestCaseDatas() {
List<TestCaseData> datas = new ArrayList<TestCaseData>();
TestCaseData caseData = new TestCaseData("测试登录", new LoginAsyncTask("LuckyJayce", "111"));
caseData.addParamGet(new String[] { "name", "password" }, new IAsyncTask<Map<String, String>>() {
@Override
public RequestHandle execute(ResponseSender<Map<String, String>> sender) throws Exception {
Map<String, String> map = new ArrayListMap<String, String>();
map.put("name", "nnnnn");
map.put("password", "ppppp");
sender.sendData(map);
return null;
}
});
datas.add(caseData);
datas.add(new TestCaseData("测试详情页", new BookDetailDataSource()));
datas.add(new TestCaseData("测试搜索文章", new SearchBookDataSource("Java")));
datas.add(new TestCaseData("测试文章列表", new BooksOkHttpNormal_DataSource()));
return datas;
}
Aggregations