diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-03 23:42:43 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-03 23:42:43 -0700 |
commit | 455ee3287248ba8d5e479399b4e39e8956c99bec (patch) | |
tree | aa2ab7c58ad0d51a570c934e8e68d4e4dc5889dc /src/test/java/org | |
parent | 0be1c61132ecff3d5b502926f3c30d7ada5b968a (diff) | |
download | trackermap-server-455ee3287248ba8d5e479399b4e39e8956c99bec.tar.gz trackermap-server-455ee3287248ba8d5e479399b4e39e8956c99bec.tar.bz2 trackermap-server-455ee3287248ba8d5e479399b4e39e8956c99bec.zip |
Implement Niot protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/NiotProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/NiotProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/NiotProtocolDecoderTest.java new file mode 100644 index 000000000..8787e8c51 --- /dev/null +++ b/src/test/java/org/traccar/protocol/NiotProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class NiotProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + NiotProtocolDecoder decoder = new NiotProtocolDecoder(null); + + verifyPosition(decoder, binary( + "585880004c08675430355777182005201100468024121b03f390ba00000105f8000b8d207ffc5f0f290084500000000000160001383932353430323130363431363839323430303700050002004e55940d")); + + verifyPosition(decoder, binary( + "585880004C08640460465310081912101835080011679303C1E18F00400085F8014FBED87FFC4D15290085501A28000000160001383932353430323131313431323931333238343200050002004E55B40D")); + + } + +} |