| | |
| | | package com.flightfeather.grid.web |
| | | |
| | | import com.flightfeather.grid.domain.ds1.entity.ClueTask |
| | | import com.flightfeather.grid.vo.ClueTaskOptions |
| | | import org.junit.jupiter.api.Test |
| | | |
| | | import org.junit.jupiter.api.Assertions.* |
| | |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | import java.time.LocalDateTime |
| | | |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | |
| | | lateinit var clueTaskController: ClueTaskController |
| | | |
| | | @Test |
| | | fun createClueTask() { |
| | | clueTaskController.createClueTask(ClueTask().apply { |
| | | |
| | | fun searchClueTask() { |
| | | val res = clueTaskController.searchClueTask(1, 30, ClueTaskOptions().apply { |
| | | provinceCode = "31" |
| | | provinceName = "上海市" |
| | | cityCode = "3100" |
| | | cityName = "上海市" |
| | | startTime = LocalDateTime.of(2025, 4, 22, 14, 35, 0) |
| | | endTime = LocalDateTime.of(2025, 4, 24, 15, 10, 0) |
| | | internal |
| | | finished |
| | | }) |
| | | println(res.toString()) |
| | | } |
| | | |
| | | @Test |
| | | fun getClueTask() { |
| | | fun getClueTaskSummary() { |
| | | val res = clueTaskController.getClueTaskSummary(ClueTaskOptions()) |
| | | println(res.toString()) |
| | | } |
| | | } |