aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-15 22:16:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-15 22:16:47 +1300
commitd8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a (patch)
treee4857c25617e5fd8eb29fe92742ea60138475f74 /test/org/traccar/protocol
parent357209a5aafe18688d5bd230d3db1ddf3c79fd59 (diff)
downloadtrackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.tar.gz
trackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.tar.bz2
trackermap-server-d8552cb2975ec8a78ed07e0ec0f1ba1c7d34086a.zip
Implement send SMS Meitrack command
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/MeitrackProtocolEncoderTest.java7
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));
+
}
}