aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TotemProtocolEncoderTest.java
diff options
context:
space:
mode:
authorIrving Gonzalez <ialexis93@gmail.com>2015-07-28 00:36:57 -0600
committerIrving Gonzalez <ialexis93@gmail.com>2015-07-28 00:36:57 -0600
commit44e0e42989bfba7159625b10a9b0e5023f6f6420 (patch)
tree54eb58eebb0cb7c4fd4cc857349f8931e8d5e9cb /test/org/traccar/protocol/TotemProtocolEncoderTest.java
parent76b883fcb008bffea756be80b301cd6934b122ac (diff)
downloadtrackermap-server-44e0e42989bfba7159625b10a9b0e5023f6f6420.tar.gz
trackermap-server-44e0e42989bfba7159625b10a9b0e5023f6f6420.tar.bz2
trackermap-server-44e0e42989bfba7159625b10a9b0e5023f6f6420.zip
Fixing TotemProtocolEncoderTest
Diffstat (limited to 'test/org/traccar/protocol/TotemProtocolEncoderTest.java')
-rw-r--r--test/org/traccar/protocol/TotemProtocolEncoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TotemProtocolEncoderTest.java b/test/org/traccar/protocol/TotemProtocolEncoderTest.java
index 1e7a95e41..365173bd2 100644
--- a/test/org/traccar/protocol/TotemProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/TotemProtocolEncoderTest.java
@@ -35,6 +35,11 @@ public class TotemProtocolEncoderTest {
command.setDeviceId(2);
command.setType(Command.TYPE_ENGINE_STOP);
+ Map<String, Object> other = new HashMap<>();
+ other.put(Command.KEY_GPS_PASSWORD, "000000");
+
+ command.setOther(other);
+
Assert.assertEquals("*000000,025,C,1#", encoder.encodeCommand(command));
}