package cn.flightfeather.supervision.lightshare.web
|
|
import cn.flightfeather.supervision.common.utils.Constant
|
import cn.flightfeather.supervision.lightshare.service.DataProductService
|
import cn.flightfeather.supervision.model.dataproduct.DataProdOption
|
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
|
import java.time.LocalDateTime
|
|
@RunWith(SpringRunner::class)
|
@ExtendWith(SpringExtension::class)
|
@SpringBootTest
|
class DataProductControllerTest {
|
|
@Autowired
|
lateinit var dataProductController: DataProductController
|
|
@Autowired
|
lateinit var dataProductService: DataProductService
|
|
private val option = DataProdOption().apply {
|
provinceCode = "31"
|
cityCode = "3100"
|
districtCode = "310106"
|
townCode
|
startTime = LocalDateTime.of(2025, 1, 1, 0, 0, 0)
|
endTime = LocalDateTime.of(2025, 7, 31, 23, 59, 59)
|
sceneId
|
sceneTypeId = Constant.SceneType.TYPE1.value.toInt()
|
}
|
|
@Test
|
fun problemChangeList() {
|
val result = dataProductService.problemChangeList(option)
|
println(result)
|
}
|
|
@Test
|
fun problemRecurrence() {
|
}
|
}
|