diff options
author | Evgeny S Maksimov <me@vragam.net> | 2019-01-19 22:55:59 +0300 |
---|---|---|
committer | Evgeny S Maksimov <me@vragam.net> | 2019-01-19 22:55:59 +0300 |
commit | 39b3237120f9c5637928e1f444785b02db888ae3 (patch) | |
tree | c9e041226a36731e787e3c53b7cc2462bbf1e042 /test/org/traccar/protocol | |
parent | 7b85a8fc8713d62352cacf1b6111cb08e2857e4b (diff) | |
download | trackermap-server-39b3237120f9c5637928e1f444785b02db888ae3.tar.gz trackermap-server-39b3237120f9c5637928e1f444785b02db888ae3.tar.bz2 trackermap-server-39b3237120f9c5637928e1f444785b02db888ae3.zip |
Added tests for FLEX 2.0 protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/NavisProtocolDecoderTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/NavisProtocolDecoderTest.java b/test/org/traccar/protocol/NavisProtocolDecoderTest.java index 88973dce7..7937c7795 100644 --- a/test/org/traccar/protocol/NavisProtocolDecoderTest.java +++ b/test/org/traccar/protocol/NavisProtocolDecoderTest.java @@ -51,6 +51,19 @@ public class NavisProtocolDecoderTest extends ProtocolTest { // FLEX 1.0 - Array (1 message) verifyPositions(decoder, binary( "7e4101080000000917c057405c002b001833c057405cbbce030225129101a00300007c6102408900400c1b3cfce3b23a12004710e000000000001bff7f000080bfffff80000080bfffffffffb2")); + + // FLEX 2.0 - Negotiation + verifyNull(decoder, binary( + "404e544301000000a9eef6021a003f8e2a3e464c4558b014147afffff008080800000e00000000000000")); + + // FLEX 2.0 - Single + verifyPosition(decoder, binary( + "7e5428000000280000002111d16b435c00a900154bd16b435ce19e030259f6920133050000b7623e429300c9e7f03f2ba45a3e1f001f007b6c5910850f0100001629080a000000000000060947"), + position("2019-01-19 18:26:25.000", true, 56.31952, 44.01423)); + + // FLEX 2.0 - Array (1 message) + verifyPositions(decoder, binary( + "7e4101270000000b17b16b435c00a9000d4bb26b435caaa2030229f29201620500000000000093004493d53fee892d3e1f001f00ac6c591081f00000001700080a0000000000000609f2")); } } |