Search in sources :

Example 6 with SMGPDeliverMessage

use of com.zx.sms.codec.smgp.msg.SMGPDeliverMessage 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 SMGPDeliverMessage

use of com.zx.sms.codec.smgp.msg.SMGPDeliverMessage 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 SMGPDeliverMessage

use of com.zx.sms.codec.smgp.msg.SMGPDeliverMessage 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

SMGPDeliverMessage (com.zx.sms.codec.smgp.msg.SMGPDeliverMessage)8 MsgId (com.zx.sms.codec.smgp.msg.MsgId)4 Test (org.junit.Test)4 SMGPSubmitMessage (com.zx.sms.codec.smgp.msg.SMGPSubmitMessage)3 SMGPDeliverRespMessage (com.zx.sms.codec.smgp.msg.SMGPDeliverRespMessage)2 SMGPSubmitRespMessage (com.zx.sms.codec.smgp.msg.SMGPSubmitRespMessage)2 SMGPActiveTestMessage (com.zx.sms.codec.smgp.msg.SMGPActiveTestMessage)1 SMGPActiveTestRespMessage (com.zx.sms.codec.smgp.msg.SMGPActiveTestRespMessage)1 SMGPBaseMessage (com.zx.sms.codec.smgp.msg.SMGPBaseMessage)1 SMGPExitMessage (com.zx.sms.codec.smgp.msg.SMGPExitMessage)1 SMGPExitRespMessage (com.zx.sms.codec.smgp.msg.SMGPExitRespMessage)1 SMGPLoginMessage (com.zx.sms.codec.smgp.msg.SMGPLoginMessage)1 SMGPLoginRespMessage (com.zx.sms.codec.smgp.msg.SMGPLoginRespMessage)1 SMGPReportData (com.zx.sms.codec.smgp.msg.SMGPReportData)1 SMGPUnknownMessage (com.zx.sms.codec.smgp.msg.SMGPUnknownMessage)1 EndpointEntity (com.zx.sms.connect.manager.EndpointEntity)1 ServerEndpoint (com.zx.sms.connect.manager.ServerEndpoint)1 ByteBuf (io.netty.buffer.ByteBuf)1