feiyu02
2025-01-03 0ddfab15b32dc054464d75c695999fa76c3b9b78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.flightfeather.uav.lightshare.service.impl
 
import com.flightfeather.uav.lightshare.service.EPWModelService
import com.flightfeather.uav.lightshare.service.ElectricityService
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 EPWModelServiceImplTest : TestCase() {
 
    @Autowired
    lateinit var epwModelService: EPWModelService
 
    @Test
    fun testGetEpwModelResult() {
        val r= epwModelService.getEpwModelResult("0d0000000001", "2021-07-01 00:00:00", "2021-07-01 23:59:59", 1000.0)
        println(r)
    }
}