Search in sources :

Example 6 with MsgId

use of com.zx.sms.codec.smgp.msg.MsgId in project SMSGate by Lihuanghe.

the class TestSMGPDeliverMessage method testascii.

@Test
public void testascii() {
    SMGPDeliverMessage msg = new SMGPDeliverMessage();
    msg.setDestTermId("13800138000");
    msg.setLinkId("1023rsd");
    msg.setMsgContent("12345678901AssBC56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890abcdefghijklmnopqrstuvwxyzABCE");
    msg.setMsgId(new MsgId());
    msg.setSrcTermId("10086988");
    testlongCodec(msg);
}
Also used : SMGPDeliverMessage(com.zx.sms.codec.smgp.msg.SMGPDeliverMessage) MsgId(com.zx.sms.codec.smgp.msg.MsgId) Test(org.junit.Test)

Example 7 with MsgId

use of com.zx.sms.codec.smgp.msg.MsgId in project SMSGate by Lihuanghe.

the class TestSMGPDeliverMessage method test1.

@Test
public void test1() {
    SMGPDeliverMessage msg = new SMGPDeliverMessage();
    msg.setDestTermId("13800138000");
    msg.setLinkId("1023rsd");
    msg.setMsgContent("第一种:通过注解@PostConstruct 和 @PreDestroy 方法 实现初始化和销毁bean之前进行的操作");
    msg.setMsgId(new MsgId());
    msg.setSrcTermId("10086988");
    testlongCodec(msg);
}
Also used : SMGPDeliverMessage(com.zx.sms.codec.smgp.msg.SMGPDeliverMessage) MsgId(com.zx.sms.codec.smgp.msg.MsgId) Test(org.junit.Test)

Example 8 with MsgId

use of com.zx.sms.codec.smgp.msg.MsgId in project SMSGate by Lihuanghe.

the class TestSMGPDeliverMessage method test3.

@Test
public void test3() {
    SMGPDeliverMessage msg = new SMGPDeliverMessage();
    msg.setDestTermId("13800138000");
    msg.setLinkId("1023rsd");
    SMGPReportData report = new SMGPReportData();
    report.setStat("Delivd");
    report.setDlvrd("111");
    report.setDoneTime("20180703000111");
    report.setErr("000");
    report.setMsgId(new MsgId());
    report.setSub("asf");
    report.setSubTime("20180703000111");
    report.setTxt("www");
    msg.setReport(report);
    msg.setMsgId(new MsgId());
    msg.setSrcTermId("10086988");
    testlongCodec(msg);
}
Also used : SMGPDeliverMessage(com.zx.sms.codec.smgp.msg.SMGPDeliverMessage) SMGPReportData(com.zx.sms.codec.smgp.msg.SMGPReportData) MsgId(com.zx.sms.codec.smgp.msg.MsgId) Test(org.junit.Test)

Aggregations

MsgId (com.zx.sms.codec.smgp.msg.MsgId)8 Test (org.junit.Test)7 SMGPDeliverMessage (com.zx.sms.codec.smgp.msg.SMGPDeliverMessage)4 SMGPReportData (com.zx.sms.codec.smgp.msg.SMGPReportData)2 SMGPSubmitRespMessage (com.zx.sms.codec.smgp.msg.SMGPSubmitRespMessage)1 SequenceNumber (com.zx.sms.common.util.SequenceNumber)1