| | |
| | | package cn.flightfeather.supervision |
| | | |
| | | |
| | | import cn.flightfeather.supervision.business.datafetch.FetchController |
| | | import cn.flightfeather.supervision.infrastructure.service.ServerManager |
| | | import cn.flightfeather.supervision.common.utils.UUIDGenerator |
| | | //import org.junit.Test |
| | | import org.junit.jupiter.api.Test |
| | | import org.junit.Test |
| | | import org.junit.jupiter.api.extension.ExtendWith |
| | | import org.junit.runner.RunWith |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | | @SpringBootTest |
| | | class SupervisionApplicationTests { |
| | | |
| | | @Autowired |
| | | private lateinit var manager: ServerManager |
| | | |
| | | @Autowired |
| | | // 静安区夜间施工许可证信息获取任务 |
| | | lateinit var fetchController: FetchController |
| | | |
| | | @Test |
| | | fun contextLoads() { |
| | |
| | | @Test |
| | | @Throws(Exception::class) |
| | | fun test1() { |
| | | //manager.startServer(args[0]); |
| | | val uuid= UUIDGenerator.generateUUID(4) |
| | | print(uuid) |
| | | fetchController.run() |
| | | |
| | | } |
| | | |
| | | } |