From 2e01748e11b6a9273a4e3ce4385fe09ffc049fac Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Mon, 21 May 2018 12:00:56 +0800 Subject: [PATCH] add maven test --- pom.xml | 11 +++++++++++ .../payment/manage/task/DashboardTaskManagerTest.java | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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