diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-12 12:49:27 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-12 12:49:27 +1300 |
commit | abfedde2e0fc8b4128639263944ad88c40fee12a (patch) | |
tree | 6466ddebf76e857af9afe0fcbe5947a6ff636644 /test/org | |
parent | 1908351b442732acc375397648a6834f09c0d9c4 (diff) | |
download | trackermap-server-abfedde2e0fc8b4128639263944ad88c40fee12a.tar.gz trackermap-server-abfedde2e0fc8b4128639263944ad88c40fee12a.tar.bz2 trackermap-server-abfedde2e0fc8b4128639263944ad88c40fee12a.zip |
Support OKO NAVI protocol (fix #1612)
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/OkoProtocolDecoderTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/OkoProtocolDecoderTest.java b/test/org/traccar/protocol/OkoProtocolDecoderTest.java new file mode 100644 index 000000000..a13839d5b --- /dev/null +++ b/test/org/traccar/protocol/OkoProtocolDecoderTest.java @@ -0,0 +1,27 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class OkoProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + OkoProtocolDecoder decoder = new OkoProtocolDecoder(new OkoProtocol()); + + verifyPosition(decoder, text( + "{861001001016415,115031.000,A,4804.101180,N,02255.227002,E,4.121,111.0,211215,6,0.00,F7,13.6,1,00")); + + verifyPosition(decoder, text( + "{132810.000,A,4926.4243,N,03203.6831,E,25.0,183,131011,07,5.69,05,14.1,1,82,3N5")); + + verifyPosition(decoder, text( + "{115034.000,A,4804.098944,N,02255.233436,E,7.858,120.9,211215,7,0.00,F7,13.7,1,00")); + + verifyPosition(decoder, text( + "{115038.000,A,4804.091227,N,02255.250213,E,17.621,128.1,211215,8,0.00,00,13.7,2,00")); + + } + +} |