- 添加 SmsPlatform
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package cn.iocoder.mall.admin;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
/**
|
||||
* 短信 application (test)
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019/5/16 10:53 AM
|
||||
*/
|
||||
@SpringBootApplication(scanBasePackages = {"cn.iocoder.mall.admin"})
|
||||
@EnableAsync(proxyTargetClass = true)
|
||||
public class SystemApplicationTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SystemApplicationTest.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @author Sin
|
||||
* @time 2019/5/16 10:52 AM
|
||||
*/
|
||||
package cn.iocoder.mall.admin;
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.iocoder.mall.admin.service;
|
||||
|
||||
import cn.iocoder.mall.admin.SystemApplicationTest;
|
||||
import cn.iocoder.mall.admin.service.SmsServiceImpl;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 短信 test
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019/5/16 10:52 AM
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = SystemApplicationTest.class)
|
||||
public class SmsServiceImplTest {
|
||||
|
||||
@Autowired
|
||||
private SmsServiceImpl smsService;
|
||||
|
||||
@Test
|
||||
public void createSignTest() {
|
||||
// smsService.createSign("测试签名1");
|
||||
smsService.getSign("测试签名1");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user