diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-15 22:16:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-15 22:16:47 +1300 |
commit | d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a (patch) | |
tree | e4857c25617e5fd8eb29fe92742ea60138475f74 /test | |
parent | 357209a5aafe18688d5bd230d3db1ddf3c79fd59 (diff) | |
download | trackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.tar.gz trackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.tar.bz2 trackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.zip |
Implement send SMS Meitrack command
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/MeitrackProtocolEncoderTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeitrackProtocolEncoderTest.java b/test/org/traccar/protocol/MeitrackProtocolEncoderTest.java index 64812c1da..3e0a870d0 100644 --- a/test/org/traccar/protocol/MeitrackProtocolEncoderTest.java +++ b/test/org/traccar/protocol/MeitrackProtocolEncoderTest.java @@ -18,6 +18,13 @@ public class MeitrackProtocolEncoderTest extends ProtocolTest { Assert.assertEquals("@@Q25,123456789012345,A10*68\r\n", encoder.encodeCommand(command)); + command.setDeviceId(1); + command.setType(Command.TYPE_SEND_SMS); + command.set(Command.KEY_PHONE_NUMBER, "15360853789"); + command.set(Command.KEY_MESSAGE, "Meitrack"); + + Assert.assertEquals("@@f48,123456789012345,C02,0,15360853789,Meitrack*B0\r\n", encoder.encodeCommand(command)); + } } |