aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-11-28 00:12:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-11-28 00:12:55 +1300
commit371edced45683da9a3b7195d48787b9f7a40b232 (patch)
tree87da4c3fc8facb491d439e4af511feef5123f6a1 /test/org/traccar
parentb149a7b71283f1a8481c9e3954d636afcff6169e (diff)
downloadtrackermap-server-371edced45683da9a3b7195d48787b9f7a40b232.tar.gz
trackermap-server-371edced45683da9a3b7195d48787b9f7a40b232.tar.bz2
trackermap-server-371edced45683da9a3b7195d48787b9f7a40b232.zip
Implement new eeLink commands
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/EelinkProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/EelinkProtocolEncoderTest.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
index 83ca85c96..b029795e0 100644
--- a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
@@ -17,6 +17,9 @@ public class EelinkProtocolDecoderTest extends ProtocolTest {
"454C0050EAE2035254407167747167671200410021590BD93803026B940D0C3952AD0021000000000501CC0001A53F0170F0AB1305890F11000000000000C2D0001C001600000000000000000000000000000000"));
verifyNull(decoder, binary(
+ "676780005E5788014C754C754C61743A4E32332E3131313734330A4C6F6E3A453131342E3430393233380A436F757273653A302E30300A53706565643A302E31374B4D2F480A446174652054696D653A323031352D30392D31332032303A32313A3230"));
+
+ verifyNull(decoder, binary(
"676701000c007b03525440717505180104"));
verifyPosition(decoder, binary(
diff --git a/test/org/traccar/protocol/EelinkProtocolEncoderTest.java b/test/org/traccar/protocol/EelinkProtocolEncoderTest.java
index 8a8cd5f6b..e0843b36d 100644
--- a/test/org/traccar/protocol/EelinkProtocolEncoderTest.java
+++ b/test/org/traccar/protocol/EelinkProtocolEncoderTest.java
@@ -9,7 +9,7 @@ public class EelinkProtocolEncoderTest extends ProtocolTest {
@Test
public void testEncode() throws Exception {
- EelinkProtocolEncoder encoder = new EelinkProtocolEncoder();
+ EelinkProtocolEncoder encoder = new EelinkProtocolEncoder(false);
Command command = new Command();
command.setDeviceId(1);