package com.flightfeather.uav.biz.sourcetrace.model
|
|
import com.flightfeather.uav.biz.FactorFilter
|
import com.flightfeather.uav.domain.repository.SceneInfoRep
|
import com.flightfeather.uav.socket.eunm.FactorType
|
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.SpringRunner
|
|
@RunWith(SpringRunner::class)
|
@SpringBootTest
|
class PollutedSourceTest {
|
|
@Autowired
|
lateinit var sceneInfoRep: SceneInfoRep
|
|
@Test
|
fun foo1() {
|
val source = PollutedSource()
|
val pollutedData = PollutedData()
|
val pollutedArea = PollutedArea().apply {
|
polygon = listOf(
|
121.421521 to 31.195457,
|
121.421721 to 31.195457,
|
121.421521 to 31.195257,
|
121.421721 to 31.195257,
|
)
|
}
|
source.searchScenes(pollutedArea, sceneInfoRep, pollutedData)
|
|
}
|
}
|