aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-21 11:58:05 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-21 11:58:05 +1300
commit1fa85c6841e12027cc87638cd558cedb79e6efa9 (patch)
tree3e583ffd4a126d47e970d6c6e37aa3c58310494c /test/org/traccar/protocol
parentf4e866ac1de424a8d962172645fccab22b111781 (diff)
downloadtrackermap-server-1fa85c6841e12027cc87638cd558cedb79e6efa9.tar.gz
trackermap-server-1fa85c6841e12027cc87638cd558cedb79e6efa9.tar.bz2
trackermap-server-1fa85c6841e12027cc87638cd558cedb79e6efa9.zip
Add unit tests for Eelink protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/EelinkProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
index d1d4c4e9e..a8fac5dbc 100644
--- a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java
@@ -13,6 +13,15 @@ public class EelinkProtocolDecoderTest extends ProtocolTest {
verifyNothing(decoder, binary(
"676701000c002603541880486128290120"));
+ verifyPosition(decoder, binary(
+ "676705002200ba569fc3520517a0d8020b0f740f007100d8001e005b0004460101569fd162001f"));
+
+ verifyPosition(decoder, binary(
+ "676702002500bb569fc3610517a091020b116000001900d8001e005b00044601001f1170003200000000"));
+
+ verifyPosition(decoder, binary(
+ "676704001c00b7569fc3020517a2d7020b08e100000000d8001e005b0004460004"));
+
verifyNothing(decoder, binary(
"676701000b001b035418804661834901"));