feiyu02
2022-11-15 23bd719cebe5feeff4e48fde925b0b39755eea93
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
package cn.flightfeather.supervision.lightshare.service.Impl
 
import cn.flightfeather.supervision.lightshare.service.NotificationService
import org.junit.Test
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
import java.io.BufferedReader
import java.io.InputStreamReader
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class NotificationServiceImplTest{
 
    @Autowired
    lateinit var notificationService: NotificationService
 
    @Test
    fun pushMsgWx() {
        Thread.sleep(10000)
        notificationService.pushMsgWx(0)
        val input = BufferedReader(InputStreamReader(System.`in`))
        val reader = input.readLine()
    }
}