diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-23 06:10:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-23 06:10:45 +1200 |
commit | 9175e41b2ceab18df2d46dd67c90fcd52a720547 (patch) | |
tree | 33c4dda1ce512243276233fc4fb87624680fd4a3 /test/org | |
parent | 61dda68755cee73b1ddf18d0f4f37d434b2a3a45 (diff) | |
download | trackermap-server-9175e41b2ceab18df2d46dd67c90fcd52a720547.tar.gz trackermap-server-9175e41b2ceab18df2d46dd67c90fcd52a720547.tar.bz2 trackermap-server-9175e41b2ceab18df2d46dd67c90fcd52a720547.zip |
Implement eSky ES320 and E321 protocols
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/EskyFrameDecoderTest.java | 4 | ||||
-rw-r--r-- | test/org/traccar/protocol/EskyProtocolDecoderTest.java | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/EskyFrameDecoderTest.java b/test/org/traccar/protocol/EskyFrameDecoderTest.java index 3b16a9051..ed587e4f3 100644 --- a/test/org/traccar/protocol/EskyFrameDecoderTest.java +++ b/test/org/traccar/protocol/EskyFrameDecoderTest.java @@ -11,6 +11,10 @@ public class EskyFrameDecoderTest extends ProtocolTest { EskyFrameDecoder decoder = new EskyFrameDecoder(); verifyFrame( + binary("454f3b303b3836313331313030363436313930383b523b363b3138303432303130343735313b322e39373839363b3130312e36353039313b302e37353b3332303b333339383b313b7c"), + decoder.decode(null, null, binary("454f3b303b3836313331313030363436313930383b523b363b3138303432303130343735313b322e39373839363b3130312e36353039313b302e37353b3332303b333339383b313b7c"))); + + verifyFrame( binary("454c3b313b3836343930363032393139363632363b3137303832323134333432363b"), decoder.decode(null, null, binary("454c3b313b3836343930363032393139363632363b3137303832323134333432363b"))); diff --git a/test/org/traccar/protocol/EskyProtocolDecoderTest.java b/test/org/traccar/protocol/EskyProtocolDecoderTest.java index 5132f42c1..10112f24c 100644 --- a/test/org/traccar/protocol/EskyProtocolDecoderTest.java +++ b/test/org/traccar/protocol/EskyProtocolDecoderTest.java @@ -10,6 +10,9 @@ public class EskyProtocolDecoderTest extends ProtocolTest { EskyProtocolDecoder decoder = new EskyProtocolDecoder(new EskyProtocol()); + verifyPosition(decoder, text( + "EO;0;861311006461908;R;6;180420104751;2.97896;101.65091;0.75;320;3398;1;|")); + verifyNull(decoder, text( "EL;1;864906029196626;170822143426;")); |