diff options
author | Anton Tananaev <anton@traccar.org> | 2023-09-09 11:21:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-09-09 11:21:53 -0700 |
commit | 1ae9886ad10edcbc876a5295021f86bb7e534fde (patch) | |
tree | a4790f2e8b9f518682ca98d452fd632b0501114f /src/test/java/org | |
parent | 22625690090a91e452f7b828e787330e7fce8f70 (diff) | |
download | trackermap-server-1ae9886ad10edcbc876a5295021f86bb7e534fde.tar.gz trackermap-server-1ae9886ad10edcbc876a5295021f86bb7e534fde.tar.bz2 trackermap-server-1ae9886ad10edcbc876a5295021f86bb7e534fde.zip |
Implement NTO protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/NtoProtocolDecoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/NtoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/NtoProtocolDecoderTest.java new file mode 100644 index 000000000..424eaadde --- /dev/null +++ b/src/test/java/org/traccar/protocol/NtoProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import org.junit.jupiter.api.Test; +import org.traccar.ProtocolTest; + +public class NtoProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + var decoder = inject(new NtoProtocolDecoder(null)); + + verifyPosition(decoder, text( + "^NB,880002023090601,N00,050923,233519,V,N,2236.1994,E,11315.4645,5,0,000000000000,460:00:0:75217090,-04:00,,1693971319,31,2DA5"), + position("2023-09-05 23:35:19.000", false, 22.60332, 113.25774)); + + } + +} |