| | |
| | | |
| | | private void validateConfiguration(TTest test) |
| | | { |
| | | // 新建测试只建立业务身份和通道关系,计划工步可在开始监测前补充。 |
| | | if (test.getPlanSteps() == null) test.setPlanSteps(new ArrayList<>()); |
| | | validateBatteries(test.getBatteries()); |
| | | validatePlanSteps(test.getPlanSteps()); |
| | | validateThresholds(test.getThresholds()); |
| | |
| | | |
| | | private void validatePlanSteps(List<TTestPlanStep> planSteps) |
| | | { |
| | | if (planSteps == null || planSteps.isEmpty()) throw new ServiceException("计划工步不能为空"); |
| | | if (planSteps.isEmpty()) return; |
| | | Set<String> identities = new HashSet<>(); |
| | | Set<Integer> orders = new HashSet<>(); |
| | | for (TTestPlanStep step : planSteps) |