diff --git a/pom.xml b/pom.xml index d43ae02c5..45470f47f 100644 --- a/pom.xml +++ b/pom.xml @@ -154,6 +154,12 @@ 2.2.4 + + junit + junit + 4.12 + test + @@ -173,6 +179,11 @@ true + + org.apache.maven.plugins + maven-surefire-plugin + 2.17 + \ No newline at end of file diff --git a/src/test/java/au/com/royalpay/payment/manage/task/DashboardTaskManagerTest.java b/src/test/java/au/com/royalpay/payment/manage/task/DashboardTaskManagerTest.java index 955a4017b..51699a49b 100644 --- a/src/test/java/au/com/royalpay/payment/manage/task/DashboardTaskManagerTest.java +++ b/src/test/java/au/com/royalpay/payment/manage/task/DashboardTaskManagerTest.java @@ -12,7 +12,7 @@ import org.springframework.test.context.junit4.SpringRunner; import javax.annotation.Resource; @SpringBootTest -@ActiveProfiles({ "proxy", "alipay", "wechat", "jd", "bestpay" }) +@ActiveProfiles({ "production", "alipay", "wechat", "jd", "bestpay" }) @RunWith(SpringRunner.class) public class DashboardTaskManagerTest { @@ -27,5 +27,10 @@ public class DashboardTaskManagerTest { dashboardService.generateCustomersAndOrdersStatistics(dt17.toDate()); dashboardService.generateCustomersAndOrdersStatistics(dt18.toDate()); dashboardService.generateCustomersAndOrdersStatistics(dt19.toDate()); +// JSONObject asd = dashboardService.getNewRecord(); +// System.out.println("asdasdasdasd-------------------"); +// System.out.println(asd); +// System.out.println(asd); +// System.out.println(asd); } } \ No newline at end of file