aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TotemProtocolEncoderTest.java
diff options
context:
space:
mode:
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));
}