mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 17:38:38 +08:00
集成梦网科技短信发送服务 - 简单测试
This commit is contained in:
parent
ba63fb4214
commit
19b951c1a5
@ -281,7 +281,7 @@ public class Sms4jTest {
|
|||||||
log.info(JSONUtil.toJsonStr(smsResponse3));
|
log.info(JSONUtil.toJsonStr(smsResponse3));
|
||||||
Assert.isTrue(smsResponse3.isSuccess());
|
Assert.isTrue(smsResponse3.isSuccess());
|
||||||
|
|
||||||
SmsResponse smsResponse4 = dz.massTexting(phones, "" ,messages);
|
SmsResponse smsResponse4 = dz.massTexting(phones, "", messages);
|
||||||
log.info(JSONUtil.toJsonStr(smsResponse4));
|
log.info(JSONUtil.toJsonStr(smsResponse4));
|
||||||
Assert.isTrue(smsResponse4.isSuccess());
|
Assert.isTrue(smsResponse4.isSuccess());
|
||||||
|
|
||||||
@ -559,4 +559,14 @@ public class Sms4jTest {
|
|||||||
Assert.isTrue(smsResponse2.isSuccess());
|
Assert.isTrue(smsResponse2.isSuccess());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 梦网短信
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void montnetsSmsTest() {
|
||||||
|
// 梦网
|
||||||
|
SmsResponse smsResponse = SmsFactory.getBySupplier(SupplierConstant.MONTNETS).sendMessage(PHONE, SmsUtils.getRandomInt(6));
|
||||||
|
Assert.isTrue(smsResponse.isSuccess());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user