add maven test

master
wangning 7 years ago
parent 63a22cd783
commit 2e01748e11

@ -154,6 +154,12 @@
<version>2.2.4</version>
</dependency>
<!--jpush end -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -173,6 +179,11 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
</plugins>
</build>
</project>

@ -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);
}
}
Loading…
Cancel
Save