|
|
@@ -3,6 +3,7 @@ package com.seecoder.dataanalysis.devcloud.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.seecoder.dataanalysis.analysis.DevcloudDataAnalysisService;
|
|
|
+import com.seecoder.dataanalysis.controller.DevcloudController;
|
|
|
import com.seecoder.dataanalysis.data.dao.devcloud.DevcloudInfoDao;
|
|
|
import com.seecoder.dataanalysis.data.dao.eval.UserDao;
|
|
|
import com.seecoder.dataanalysis.data.entity.devcloud.*;
|
|
|
@@ -43,6 +44,8 @@ public class DevcloudDataAnalysisServiceImplTest {
|
|
|
private DevcloudInfoDao devcloudInfoDao;
|
|
|
@Autowired
|
|
|
private UserDao userDao;
|
|
|
+ @Autowired
|
|
|
+ private DevcloudController devcloudController;
|
|
|
|
|
|
@Test
|
|
|
void testEnum(){
|
|
|
@@ -103,12 +106,12 @@ public class DevcloudDataAnalysisServiceImplTest {
|
|
|
void type101(){
|
|
|
CommitInfoDTO commitInfoDTO = new CommitInfoDTO();
|
|
|
commitInfoDTO.setProjectId(13);
|
|
|
- commitInfoDTO.setCommitId("aaaa123456");
|
|
|
+ commitInfoDTO.setCommitId("aaaa123456789");
|
|
|
commitInfoDTO.setCommitName("我超");
|
|
|
commitInfoDTO.setCommitTime("2022-03-19");
|
|
|
commitInfoDTO.setMessage("feat: 完善购物功能");
|
|
|
commitInfoDTO.setUserId(4);
|
|
|
- commitInfoDTO.setType("bug_list");
|
|
|
+ commitInfoDTO.setType("BUG_ID");
|
|
|
|
|
|
devcloudDataAnalysisService.updateDevInfoType101(commitInfoDTO);
|
|
|
}
|
|
|
@@ -250,15 +253,21 @@ public class DevcloudDataAnalysisServiceImplTest {
|
|
|
|
|
|
@Test
|
|
|
void testStudent(){
|
|
|
- FormatStudent formatStudent = devcloudDataAnalysisService.getStudentAnalysis(4);
|
|
|
- FormatStudent formatStudent1 = devcloudDataAnalysisService.getStudentAnalysis(3);
|
|
|
+// FormatStudent formatStudent = devcloudDataAnalysisService.getStudentAnalysis(4);
|
|
|
+// FormatStudent formatStudent1 = devcloudDataAnalysisService.getStudentAnalysis(3);
|
|
|
+ FormatStudent formatStudent = (FormatStudent) devcloudController.getStudentAnalysis(4).getContent();
|
|
|
+
|
|
|
formatStudent.display();
|
|
|
- formatStudent1.display();
|
|
|
+// formatStudent1.display();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
void testGroup(){
|
|
|
- FormatGroup formatGroup = devcloudDataAnalysisService.getGroupAnalysis(12);
|
|
|
+// FormatGroup formatGroup = devcloudDataAnalysisService.getGroupAnalysis(12);
|
|
|
+
|
|
|
+ FormatGroup formatGroup = (FormatGroup)devcloudController.getGroupAnalysis(12).getContent();
|
|
|
+
|
|
|
formatGroup.display();
|
|
|
}
|
|
|
}
|