feiyu02
2024-11-21 90615ce702dde7f1d8fed373d8f3a96796ef1f2d
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
38
39
package cn.flightfeather.supervision.lightshare.service.impl
 
import cn.flightfeather.supervision.SupervisionApplication
import cn.flightfeather.supervision.domain.ds2.mapper.UserMapMapper
import cn.flightfeather.supervision.lightshare.service.UserMapService
import cn.flightfeather.supervision.lightshare.service.UserinfoService
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.SpringJUnit4ClassRunner
 
@RunWith(SpringJUnit4ClassRunner::class)
@SpringBootTest(classes = [SupervisionApplication::class])
class UserinfoServiceImplTest {
 
    @Autowired
    lateinit var userinfoService: UserinfoService
 
    @Autowired
    lateinit var userMapService: UserMapService
 
    @Test
    fun createAccount() {
        userinfoService.createAccount("vLnmtSgEZ1Hegk38")
    }
 
    @Test
    fun autoCreateAccount() {
        userinfoService.autoCreateAccount()
    }
 
    @Test
    fun autoCreateMap() {
        val user = userinfoService.findOne("58G5NHgRc1TjDTAH")
        userMapService.autoCreateMap(listOf(user))
    }
}