jiangqs
2023-09-04 c97706c3cc213b7db3d381e8a0435ff0ef9a04d6
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 com.ruoyi.system;
 
 
import com.ruoyi.system.service.staff.SysWxCpService;
import me.chanjar.weixin.common.error.WxErrorException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 
import javax.annotation.Resource;
 
/**
 * @ClassName systemTest
 * @Description TODO
 * @Author jqs
 * @Date 2023/6/7 10:57
 * @Version 1.0
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = RuoYiSystemApplication.class)
public class systemTest {
 
    @Resource
    private SysWxCpService sysWxCpService;
 
    @Test
    public void main() throws WxErrorException {
        sysWxCpService.sendMessage();
        sysWxCpService.updateDept();
    }
}