diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-03 18:25:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-03 18:25:42 -0800 |
commit | 36202715301e365af212112d22059125adaea92a (patch) | |
tree | c70d624e7f5cbac66924ab5886e4cde62e51a91f /src/test/java/org/traccar/protocol | |
parent | 4873b53337def07db8b603c3a871d76565dfd80e (diff) | |
download | trackermap-server-36202715301e365af212112d22059125adaea92a.tar.gz trackermap-server-36202715301e365af212112d22059125adaea92a.tar.bz2 trackermap-server-36202715301e365af212112d22059125adaea92a.zip |
Implement JIDO T63 protocol
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/JidoProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/JidoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/JidoProtocolDecoderTest.java new file mode 100644 index 000000000..9e01d7d68 --- /dev/null +++ b/src/test/java/org/traccar/protocol/JidoProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class JidoProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + var decoder = new JidoProtocolDecoder(null); + + verifyPosition(decoder, text( + "*12345678910101000,01,A,130517,160435,1820.5845,N,07833.2478,E,20,0,067,045,05,28,26,1,075,Y,1,0000,0000,0000,59")); + + verifyPosition(decoder, text( + "*12345678910101000,03,130517,160435,1820.5845,N,07833.2478,E,1,58")); + + } + +} |