aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorIrving Gonzalez <ialexis93@gmail.com>2015-07-27 23:05:26 -0600
committerIrving Gonzalez <ialexis93@gmail.com>2015-07-27 23:05:26 -0600
commit23785ccc618d65ea197ed9e081bf033ea8d64a7e (patch)
tree95855816fc68e2f6f216f6eb768585ba9d8b5e46 /test/org
parentc4f6471ee18b97130e85efd488b5d102a1935366 (diff)
downloadtrackermap-server-23785ccc618d65ea197ed9e081bf033ea8d64a7e.tar.gz
trackermap-server-23785ccc618d65ea197ed9e081bf033ea8d64a7e.tar.bz2
trackermap-server-23785ccc618d65ea197ed9e081bf033ea8d64a7e.zip
Removing unnecessary try-catch and adding more commands to Totem protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/TotemProtocolEncoderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/TotemProtocolEncoderTest.java b/test/org/traccar/protocol/TotemProtocolEncoderTest.java
index 13c5b944f..1e7a95e41 100644
--- a/test/org/traccar/protocol/TotemProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/TotemProtocolEncoderTest.java
@@ -33,9 +33,9 @@ public class TotemProtocolEncoderTest {
Command command = new Command();
command.setDeviceId(2);
- command.setType(Command.TYPE_IMEI);
+ command.setType(Command.TYPE_ENGINE_STOP);
- Assert.assertEquals("*000000,801#", encoder.encodeCommand(command));
+ Assert.assertEquals("*000000,025,C,1#", encoder.encodeCommand(command));
}
}