- 添加 SmsPlatform

This commit is contained in:
sin
2019-05-16 21:50:22 +08:00
parent 2b02b5b9e5
commit 453235bb6a
20 changed files with 957 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -0,0 +1,5 @@
/**
* @author Sin
* @time 2019/5/16 10:52 AM
*/
package cn.iocoder.mall.admin;

View File

@@ -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");
}
}