Explorar o código

测试用例报错

yumeng %!s(int64=4) %!d(string=hai) anos
pai
achega
c5383146b8

+ 8 - 6
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -251,17 +251,17 @@ public class SampleTest {
     }
     }
 
 
     @Test
     @Test
-    public void loadKuaishouData(){
+    public void loadKuaishouData() {
         Date getDate = DateUtils.addDay(new Date(), -1);
         Date getDate = DateUtils.addDay(new Date(), -1);
         //1:查询当日数据
         //1:查询当日数据
         List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
         List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
-        for (CtopOauthToken token:tokens){
+        for (CtopOauthToken token : tokens) {
             kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getDate, getDate);
             kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getDate, getDate);
         }
         }
     }
     }
 
 
     @Test
     @Test
-    public void loadKuaishouHourlyReportData(){
+    public void loadKuaishouHourlyReportData() {
         Date getDate = new Date();
         Date getDate = new Date();
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
         String hour = simpleDateFormat.format(getDate);
         String hour = simpleDateFormat.format(getDate);
@@ -273,6 +273,7 @@ public class SampleTest {
         Date finalGetDate = getDate;
         Date finalGetDate = getDate;
         tokens.forEach(token -> kuaishouInterfaceService.getAdvertiserReportHourly(token, finalGetDate, finalGetDate));
         tokens.forEach(token -> kuaishouInterfaceService.getAdvertiserReportHourly(token, finalGetDate, finalGetDate));
     }
     }
+
     @Autowired
     @Autowired
     private IKuaishouInterfaceService kuaishouInterfaceService;
     private IKuaishouInterfaceService kuaishouInterfaceService;
 
 
@@ -342,11 +343,12 @@ public class SampleTest {
 
 
     @Autowired
     @Autowired
     IRuleKuaiShouPlanService kuaiShouPlanService;
     IRuleKuaiShouPlanService kuaiShouPlanService;
+
     @Test
     @Test
-    public void kuaishouRuleData(){
+    public void kuaishouRuleData() {
         //kuaiShouPlanService.cleanRuleDataPlan(3429620L,"2020-12-07","2020-12-07",1);
         //kuaiShouPlanService.cleanRuleDataPlan(3429620L,"2020-12-07","2020-12-07",1);
-        kuaiShouPlanService.cleanRuleDataUnit(3429620L,"2020-12-07","2020-12-07",1);
-        kuaiShouPlanService.cleanRuleDataTarget(3429620L,"2020-12-07","2020-12-07",1);
+        kuaiShouPlanService.cleanRuleDataUnit(3429620L, "2020-12-07", "2020-12-07", 1);
+        // kuaiShouPlanService.cleanRuleDataTarget(3429620L,"2020-12-07","2020-12-07",1);
 
 
     }
     }