aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-26 23:37:13 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-26 23:37:13 -0700
commit9b90538fc856041e14c12dd4fabbb108cd7858df (patch)
tree33962d6783da7fdf2789a353f1da67c457c30e65 /src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java
parentc560535dda15f1d24b60c9595c603144e3ce766d (diff)
downloadtrackermap-server-9b90538fc856041e14c12dd4fabbb108cd7858df.tar.gz
trackermap-server-9b90538fc856041e14c12dd4fabbb108cd7858df.tar.bz2
trackermap-server-9b90538fc856041e14c12dd4fabbb108cd7858df.zip
Implement Net device protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java
new file mode 100644
index 000000000..6b8754373
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/NetProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class NetProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ NetProtocolDecoder decoder = new NetProtocolDecoder(null);
+
+ verifyPosition(decoder, text(
+ "@L0368609060401776171223102005072803703296103721462100008009000000300B12B000"));
+
+ }
+
+}