package com.flightfeather.uav.lightshare.service.impl
|
|
import com.flightfeather.uav.lightshare.service.DataAnalysisService
|
import junit.framework.TestCase
|
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 DataAnalysisServiceImplTest{
|
|
@Autowired
|
lateinit var dataAnalysisService: DataAnalysisService
|
|
@Test
|
fun testPollutionTrace() {
|
dataAnalysisService.pollutionTrace("SH-CN-20250116")
|
}
|
|
@Test
|
fun fetchHistory() {
|
dataAnalysisService.fetchHistory("SH-CN-20250723(01)")
|
}
|
}
|