From 849e09b7cc79c7f1fa0dd5c97ab27f0cf01a8630 Mon Sep 17 00:00:00 2001 From: zhangkewei Date: Thu, 30 Aug 2018 10:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95=E4=BE=9D=E8=B5=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E7=B1=BB=E4=B8=8D?= =?UTF-8?q?=E5=90=88=E7=90=86=EF=BC=8C=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/vbill/middleware/manager/BaseTest.java | 19 ----- .../middleware/manager/test/ManagerTest.java | 70 ------------------- 2 files changed, 89 deletions(-) delete mode 100644 manager/manager-boot/src/test/java/cn/vbill/middleware/manager/BaseTest.java delete mode 100644 manager/manager-boot/src/test/java/cn/vbill/middleware/manager/test/ManagerTest.java diff --git a/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/BaseTest.java b/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/BaseTest.java deleted file mode 100644 index 3581af3a..00000000 --- a/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/BaseTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package cn.vbill.middleware.manager; - -import cn.vbill.middleware.porter.manager.ManagerBootApplication; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; -import org.springframework.test.context.ActiveProfiles; -import org.springframework.test.context.junit4.SpringRunner; - -/** - * - * @author guohongjian[guo_hj@suixingpay.com] - * - */ -@RunWith(SpringRunner.class) -@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, classes = ManagerBootApplication.class) -@ActiveProfiles("sample")// 开发环境 -public class BaseTest { -} \ No newline at end of file diff --git a/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/test/ManagerTest.java b/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/test/ManagerTest.java deleted file mode 100644 index 772416d0..00000000 --- a/manager/manager-boot/src/test/java/cn/vbill/middleware/manager/test/ManagerTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - */ -package cn.vbill.middleware.manager.test; - -import cn.vbill.middleware.manager.BaseTest; -import cn.vbill.middleware.porter.manager.core.icon.HomeBlockResult; -import cn.vbill.middleware.porter.manager.core.util.ApplicationContextUtil; -import cn.vbill.middleware.porter.manager.service.impl.MonitorScheduledServiceImpl; -import cn.vbill.middleware.porter.manager.service.HomeService; -import cn.vbill.middleware.porter.manager.service.MonitorScheduledService; -import cn.vbill.middleware.porter.manager.service.impl.HomeServiceImpl; -import org.junit.Test; - -/** - * @author guohongjian[guo_hj@suixingpay.com] - */ -public class ManagerTest extends BaseTest { - - @Test - public void test() { - System.out.println(111); - } - - /** - * entryData.getKey():log_date - * entry.getKey():mr_log_monitor - * entry.getValue()mr_log_monitor_20180425 - *

- * entryData.getKey():monitor_date - * entry.getKey():mr_job_tasks_monitor - * entry.getValue()mr_job_tasks_monitor_20180425 - *

- * entryData.getKey():monitor_date - * entry.getKey():mr_nodes_monitor - * entry.getValue()mr_nodes_monitor_20180425 - */ - @Test - public void test1() { - - MonitorScheduledService monitorScheduledService = ApplicationContextUtil.getBean(MonitorScheduledServiceImpl.class); - monitorScheduledService.dropTableTask(); - } - - @Test - public void test2() { - HomeService homeService = ApplicationContextUtil.getBean(HomeServiceImpl.class); - HomeBlockResult homeBlockResult = homeService.bolck(); - - } -} - - - - - - - - - - - - - - - - - - -