|
|
@@ -26,8 +26,13 @@ import java.util.concurrent.CountDownLatch;
|
|
|
@Service
|
|
|
public class APITestServiceImpl implements APITestService {
|
|
|
|
|
|
+
|
|
|
+ private final APITestMapper apiTestMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
- private APITestMapper apiTestMapper;
|
|
|
+ public APITestServiceImpl(APITestMapper apiTestMapper) {
|
|
|
+ this.apiTestMapper = apiTestMapper;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -164,7 +169,7 @@ public class APITestServiceImpl implements APITestService {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- APITestServiceImpl apiTestService = new APITestServiceImpl();
|
|
|
+ APITestServiceImpl apiTestService = new APITestServiceImpl(apiTestMapper);
|
|
|
apiTestService.startTaskAllInOnce(10, task);
|
|
|
String tl = "";
|
|
|
for (int j = 0; j < timeList.size(); j++) {
|