feiyu02
2022-01-12 1564af04dacafcc08a9682a4ef1e651120c8cc46
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
35
36
37
package cn.flightfeather.supervision.lightshare.service.Impl
 
import cn.flightfeather.supervision.lightshare.service.LedgerService
import org.junit.Test
 
import org.junit.Assert.*
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit.jupiter.SpringExtension
import org.springframework.test.context.junit4.SpringRunner
 
/**
 * @author riku
 * Date: 2020/11/10
 */
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class LedgerServiceImplTest {
 
    @Autowired
    lateinit var ledgerService: LedgerService
 
    @Test
    fun getUserLedgerSummary() {
        val r = ledgerService.getUserLedgerSummary("mriXrddyrVAyaakB", 7, "2020-11-10")
        println(r)
    }
 
    @Test
    fun getLedgerDetail2() {
        val r = ledgerService.getLedgerDetail2("mriXrddyrVAyaakB", sceneType = 7, time = "2020-11-10")
        println(r)
    }
}