diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-08-03 23:16:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-08-03 23:16:11 -0700 |
commit | b5e9d84cfeb8d4e6a4e1133a2e0510652be1de6b (patch) | |
tree | 36f14a8a052163f2e1b0a770c65204ebc938eff0 /src/test/java/org | |
parent | 10da32b83608a882744212373e3ff4ff2716aadf (diff) | |
download | trackermap-server-b5e9d84cfeb8d4e6a4e1133a2e0510652be1de6b.tar.gz trackermap-server-b5e9d84cfeb8d4e6a4e1133a2e0510652be1de6b.tar.bz2 trackermap-server-b5e9d84cfeb8d4e6a4e1133a2e0510652be1de6b.zip |
Implement Naviset protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java | 19 | ||||
-rw-r--r-- | src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java | 18 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java b/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java new file mode 100644 index 000000000..450f77144 --- /dev/null +++ b/src/test/java/org/traccar/protocol/NavisetFrameDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class NavisetFrameDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + NavisetFrameDecoder decoder = new NavisetFrameDecoder(); + + verifyFrame( + binary("1310e4073836383230343030353935383436362a060716"), + decoder.decode(null, null, binary("1310e4073836383230343030353935383436362a060716"))); + + } + +} diff --git a/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java new file mode 100644 index 000000000..a17f9d1e3 --- /dev/null +++ b/src/test/java/org/traccar/protocol/NavisetProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class NavisetProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + NavisetProtocolDecoder decoder = new NavisetProtocolDecoder(null); + + verifyNull(decoder, binary( + "1310e4073836383230343030353935383436362a060716")); + + } + +} |