feiyu02
2024-06-27 e8f935a01d75c89ac591a80b9318eac2480e2dcd
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
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)
    }
}