diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-25 14:42:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-25 14:42:09 +1300 |
commit | cf058d4890b2b1adce9902417f6f56d17a540ff7 (patch) | |
tree | 55c7318a0dc8b51f4ba871ef9492c160b09f77b1 /test/org | |
parent | f40140e60895e99c6933926496ae792561df17a3 (diff) | |
download | trackermap-server-cf058d4890b2b1adce9902417f6f56d17a540ff7.tar.gz trackermap-server-cf058d4890b2b1adce9902417f6f56d17a540ff7.tar.bz2 trackermap-server-cf058d4890b2b1adce9902417f6f56d17a540ff7.zip |
Implement Kenji KJ-8501 protocol
Diffstat (limited to 'test/org')
-rwxr-xr-x | test/org/traccar/protocol/KenjiProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/KenjiProtocolDecoderTest.java b/test/org/traccar/protocol/KenjiProtocolDecoderTest.java new file mode 100755 index 000000000..dcb5aea01 --- /dev/null +++ b/test/org/traccar/protocol/KenjiProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class KenjiProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + KenjiProtocolDecoder decoder = new KenjiProtocolDecoder(new KenjiProtocol()); + + verifyPosition(decoder, text( + ">C800000,M005004,O0000,I0002,D124057,A,S3137.2783,W05830.2978,T000.0,H254.3,Y240116,G06*17"), + position("2016-01-24 12:40:57.000", true, -31.62131, -58.50496)); + } + +} |