feiyu02
2024-08-15 196bb14112448857a885e32dc4149e308e00b01a
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
package cn.flightfeather.supervision.common.wx
 
import org.junit.Test
import org.junit.jupiter.api.Assertions.*
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
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class TemplateManagerTest{
 
    @Autowired
    lateinit var templateManager: TemplateManager
 
    @Test
    fun newTemplate() {
        Thread.sleep(10000)
//        val msg = templateManager.newTemplate(0, "otZkc5cC55BtV2AFZdXMvBw0oJo8", listOf("value1", "value2", "value3", "value4"))
//        templateManager.sendMsg(1, "otZkc5cC55BtV2AFZdXMvBw0oJo8",
//            listOf("自测智评", "企业自我管理", "根据评估表格进行企业自我测评", "2023年7月5日", "请在月底前及时完成"))
//        templateManager.sendMsg(2, "otZkc5cC55BtV2AFZdXMvBw0oJo8",
//            listOf("会议通知", "关于汽修VOC专项整治的重要会议", "2023年7月5日", "请各企业代表积极配合参加"))
        templateManager.sendMsg(3, "otZkc5cC55BtV2AFZdXMvBw0oJo8",
            listOf("小程序认证", "包含企业认证与个人认证", "2023年7月5日", "当前还有个人认证未完成", "1/2"))
//        println(msg)
    }
}