package com.flightfeather.uav.lightshare.service.impl
|
|
import com.flightfeather.uav.lightshare.service.ElectricityService
|
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
|
|
/**
|
* Date 2021/12/1 16:49
|
* Created by feiyu
|
*/
|
@RunWith(SpringRunner::class)
|
@SpringBootTest
|
class ElectricityServiceImplTest {
|
|
@Autowired
|
lateinit var electricityService: ElectricityService
|
|
@Test
|
fun dailyStatistics() {
|
val r = electricityService.dailyAnalysis("J3euwNl19WZvH7iE", "2021-07-16 00:00:00", "2021-07-16 00:00:00")
|
println(r)
|
}
|
}
|