aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorEvgeny S Maksimov <me@vragam.net>2019-01-28 23:44:12 +0300
committerEvgeny S Maksimov <me@vragam.net>2019-01-28 23:44:12 +0300
commitcbddcd311a777f0fbe1dcea4105b01ef0ffa4e34 (patch)
tree8d40a5358840b386f0a1f0b2d6110c9893c676f4 /test/org
parent95285d6f8c93d4a9c8e03d634b0a503695fe4449 (diff)
downloadtrackermap-server-cbddcd311a777f0fbe1dcea4105b01ef0ffa4e34.tar.gz
trackermap-server-cbddcd311a777f0fbe1dcea4105b01ef0ffa4e34.tar.bz2
trackermap-server-cbddcd311a777f0fbe1dcea4105b01ef0ffa4e34.zip
Message type parser refactoring
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/NavisProtocolDecoderTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/NavisProtocolDecoderTest.java b/test/org/traccar/protocol/NavisProtocolDecoderTest.java
index 7230bc0a1..5bf0c84bc 100644
--- a/test/org/traccar/protocol/NavisProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/NavisProtocolDecoderTest.java
@@ -15,9 +15,6 @@ public class NavisProtocolDecoderTest extends ProtocolTest {
verifyNull(decoder, binary(
"404E5443010000007B000000130044342A3E533A383631373835303035323035303739"));
- verifyNull(decoder, binary(
- "404E5443010000007B000000130047372A3E533A383631373835303035313236303639"));
-
// NTCB F5.2 - Single
verifyPosition(decoder, binary(
"404e5443010000000000000059009adb2a3e54250000000000ff1500040b0a1008291838001200760ee600000000000000000000000f1500040b0a10ac20703fb1aec23f00000000320149668f430000000000000000000000000000000000000000000000f3808080"),
@@ -55,6 +52,12 @@ public class NavisProtocolDecoderTest extends ProtocolTest {
verifyPositions(decoder, binary(
"7e4101080000000917c057405c002b001833c057405cbbce030225129101a00300007c6102408900400c1b3cfce3b23a12004710e000000000001bff7f000080bfffff80000080bfffffffffb2"));
+ decoder = new NavisProtocolDecoder(null);
+
+ // Handshake
+ verifyNull(decoder, binary(
+ "404E5443010000007B000000130047372A3E533A383631373835303035313236303639"));
+
// FLEX 2.0 - Negotiation
verifyNull(decoder, binary(
"404e544301000000a9eef6021a003f8e2a3e464c4558b014147afffff008080800000e00000000000000"));