| | |
| | | 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 |
| | |
| | | @SpringBootTest(classes = RuoYiSystemApplication.class) |
| | | public class systemTest { |
| | | |
| | | @Resource |
| | | private SysWxCpService sysWxCpService; |
| | | |
| | | |
| | | |
| | | @Test |
| | | public void main() throws WxErrorException { |
| | | sysWxCpService.sendMessage(); |
| | | sysWxCpService.updateDept(); |
| | | } |
| | | } |