New file |
| | |
| | | package com.matrix; |
| | | |
| | | import com.matrix.system.hive.bean.SysProjServices; |
| | | import com.matrix.system.hive.service.SysProjServicesService; |
| | | import com.matrix.system.hive.service.TaiYanAliyunSmsService; |
| | | 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.SpringRunner; |
| | | |
| | | /** |
| | | * @author jiangyouyao |
| | | * @email 512061637@qq.com |
| | | * @date 2019年2月25日 |
| | | */ |
| | | @RunWith(SpringRunner.class) |
| | | @SpringBootTest(classes = {ZqErpApplication.class},webEnvironment =SpringBootTest.WebEnvironment.RANDOM_PORT) |
| | | public class TaiYanAliyunSmsServiceTest { |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private TaiYanAliyunSmsService taiYanAliyunSmsService; |
| | | @Autowired |
| | | SysProjServicesService projServicesService; |
| | | |
| | | |
| | | @Test |
| | | public void addSendYycgNotice(){ |
| | | SysProjServices byId = projServicesService.findById(215550L); |
| | | byId.setVipId(5949L); |
| | | taiYanAliyunSmsService.sendYycgNotice(byId); |
| | | taiYanAliyunSmsService.sendHkNotice(byId); |
| | | |
| | | } |
| | | |
| | | |
| | | } |