refactor(接口测试): 增加接口测试覆盖率
This commit is contained in:
parent
350f7d23a3
commit
7ffa913080
|
@ -107,14 +107,14 @@ public class CleanupApiResourceServiceImpl implements CleanupProjectResourceServ
|
||||||
//删除模块
|
//删除模块
|
||||||
delApiModule(projectId);
|
delApiModule(projectId);
|
||||||
delScenarioModule(projectId);
|
delScenarioModule(projectId);
|
||||||
|
//删除定时任务
|
||||||
|
deleteSchedule(projectId);
|
||||||
//删除接口
|
//删除接口
|
||||||
delApi(projectId);
|
delApi(projectId);
|
||||||
//删除报告 删除执行记录
|
//删除报告 删除执行记录
|
||||||
deleteReport(projectId);
|
deleteReport(projectId);
|
||||||
//删除分享报告的数据
|
//删除分享报告的数据
|
||||||
deleteShareUrl(projectId);
|
deleteShareUrl(projectId);
|
||||||
//删除定时任务
|
|
||||||
deleteSchedule(projectId);
|
|
||||||
//删除场景
|
//删除场景
|
||||||
deleteScenario(projectId);
|
deleteScenario(projectId);
|
||||||
|
|
||||||
|
@ -138,7 +138,6 @@ public class CleanupApiResourceServiceImpl implements CleanupProjectResourceServ
|
||||||
//删除blob
|
//删除blob
|
||||||
apiScenarioBlobMapper.deleteByExample(example);
|
apiScenarioBlobMapper.deleteByExample(example);
|
||||||
|
|
||||||
|
|
||||||
ApiScenarioStepExample stepExample = new ApiScenarioStepExample();
|
ApiScenarioStepExample stepExample = new ApiScenarioStepExample();
|
||||||
stepExample.createCriteria().andScenarioIdIn(subList);
|
stepExample.createCriteria().andScenarioIdIn(subList);
|
||||||
//删除step
|
//删除step
|
||||||
|
|
|
@ -187,8 +187,8 @@ public class CleanupApiTests {
|
||||||
initData();
|
initData();
|
||||||
initReportData("test");
|
initReportData("test");
|
||||||
initScheduleData();
|
initScheduleData();
|
||||||
serviceInvoker.invokeServices("test");
|
|
||||||
cleanupApiResourceServiceImpl.deleteResources("test");
|
cleanupApiResourceServiceImpl.deleteResources("test");
|
||||||
|
serviceInvoker.invokeServices("test");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initScheduleData() {
|
private void initScheduleData() {
|
||||||
|
|
Loading…
Reference in New Issue