parent
748e021f55
commit
8f38a3f2c4
@ -0,0 +1,31 @@
|
||||
package au.com.royalpay.payment.manage.task;
|
||||
|
||||
import au.com.royalpay.payment.manage.analysis.core.DashboardService;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@SpringBootTest
|
||||
@ActiveProfiles({ "proxy", "alipay", "wechat", "jd", "bestpay" })
|
||||
@RunWith(SpringRunner.class)
|
||||
public class DashboardTaskManagerTest {
|
||||
|
||||
@Resource
|
||||
private DashboardService dashboardService;
|
||||
|
||||
@Test
|
||||
public void analysisDashboard() {
|
||||
DateTime dt17 = new DateTime(2018,5,17,11,11);
|
||||
DateTime dt18 = new DateTime(2018,5,18,11,11);
|
||||
DateTime dt19 = new DateTime(2018,5,19,11,11);
|
||||
dashboardService.generateCustomersAndOrdersStatistics(dt17.toDate());
|
||||
dashboardService.generateCustomersAndOrdersStatistics(dt18.toDate());
|
||||
dashboardService.generateCustomersAndOrdersStatistics(dt19.toDate());
|
||||
}
|
||||
}
|
Loading…
Reference in new issue