fix(接口测试): 覆盖用例时判断系统内是否有相同用例

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-07-12 15:17:04 +08:00 committed by xiaomeinvG
parent 545f4cf81c
commit 0ab07b7da8
1 changed files with 1 additions and 1 deletions

View File

@ -1108,7 +1108,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
//找出每个接口的case
List<ApiTestCaseWithBLOBs> apiTestCases = oldCaseMap.get(definitionWithBLOBs.getId());
Map<String, ApiTestCaseWithBLOBs> oldCaseNameMap;
if (!apiTestCases.isEmpty()) {
if (apiTestCases != null && !apiTestCases.isEmpty()) {
oldCaseNameMap = apiTestCases.stream().collect(Collectors.toMap(ApiTestCase::getName, testCase -> testCase));
caseNameMap.forEach((name, caseWithBLOBs1) -> {