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))
|
}
|
}
|