forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
648 B
27 lines
648 B
6 years ago
|
package com.fanruan.api.util;
|
||
|
|
||
|
import com.fanruan.api.util.shell.BatchSmsBody;
|
||
|
import com.fanruan.api.util.shell.SingleSmsBody;
|
||
|
import org.junit.Test;
|
||
|
|
||
|
import static org.junit.Assert.assertTrue;
|
||
|
import static org.junit.Assert.fail;
|
||
|
|
||
|
/**
|
||
|
* @ClassName TransmissionKitTest
|
||
|
* @Author zack
|
||
|
* @Date 2019/8/23
|
||
|
* @Version 10.0
|
||
|
*/
|
||
|
public class TransmissionKitTest {
|
||
|
@Test
|
||
|
public void testSmsBody() {
|
||
|
try {
|
||
|
SingleSmsBody.newBuilder().mobile("").para(null).build();
|
||
|
BatchSmsBody.newBuilder().mobiles(null).build();
|
||
|
fail();
|
||
|
} catch (Exception e) {
|
||
|
assertTrue(true);
|
||
|
}
|
||
|
}
|
||
|
}
|