From 7d74f3fd087d4a8192ed556a6c2e3a2ea3c81cff Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 28 三月 2025 17:43:48 +0800 Subject: [PATCH] 1. 新增扬尘监测数据上传功能 --- src/test/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DomaincatalogServiceImplTest.kt | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/test/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DomaincatalogServiceImplTest.kt b/src/test/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DomaincatalogServiceImplTest.kt new file mode 100644 index 0000000..116a253 --- /dev/null +++ b/src/test/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DomaincatalogServiceImplTest.kt @@ -0,0 +1,41 @@ +package cn.flightfeather.supervision.lightshare.service.impl + +import cn.flightfeather.supervision.SupervisionApplication +import cn.flightfeather.supervision.common.utils.Constant +import cn.flightfeather.supervision.lightshare.service.DomaincatalogService +import cn.flightfeather.supervision.lightshare.vo.AreaVo +import org.junit.Test +import org.junit.runner.RunWith +import org.springframework.beans.factory.annotation.Autowired +import org.springframework.boot.test.context.SpringBootTest +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner + +@RunWith(SpringJUnit4ClassRunner::class) +@SpringBootTest(classes = [SupervisionApplication::class]) +class DomaincatalogServiceImplTest { + + @Autowired + lateinit var domaincatalogService: DomaincatalogService + + @Test + fun quickConfiguration() { + domaincatalogService.quickConfiguration( + Constant.SceneType.TYPE15, AreaVo().apply { + provincecode = "31" + provincename = "涓婃捣甯�" + citycode = "3100" + cityname = "涓婃捣甯�" + districtcode = "310105" + districtname = "闀垮畞鍖�" + }, + Constant.SceneType.TYPE1, AreaVo().apply { + provincecode = "31" + provincename = "涓婃捣甯�" + citycode = "3100" + cityname = "涓婃捣甯�" + districtcode = "310105" + districtname = "闀垮畞鍖�" + } + ) + } +} \ No newline at end of file -- Gitblit v1.9.3