feiyu02
2025-09-02 8c6e742562d0c8647e0ee8deff01a3eb176d677b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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)
 
    }
}