diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-23 23:14:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-23 23:14:33 -0700 |
commit | be87b57c22b385bfc317d4e3e18e43877f46ca9b (patch) | |
tree | e1f26d7f880048c3733939512deed1e90d287c92 /src/test | |
parent | ae2b6f31de1559805589cbd1a8d9dd1324b3bd58 (diff) | |
download | traccar-server-be87b57c22b385bfc317d4e3e18e43877f46ca9b.tar.gz traccar-server-be87b57c22b385bfc317d4e3e18e43877f46ca9b.tar.bz2 traccar-server-be87b57c22b385bfc317d4e3e18e43877f46ca9b.zip |
Implement iStartek protocol
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java new file mode 100644 index 000000000..98e6863e2 --- /dev/null +++ b/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class StartekProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + StartekProtocolDecoder decoder = new StartekProtocolDecoder(null); + + verifyPosition(decoder, text( + "&&A147,021104023195429,000,0,,180106093046,A,22.646430,114.065730,8,0.9,54,86,76,326781,460|0|27B3|0EA7,27,0000000F,02,01,04E2|018C|01C8|0000,1,0104B0,01013D|02813546")); + + verifyPosition(decoder, text( + "&&y139,860262050009146,000,0,,210323131512,A,22.678655,114.046223,14,1.1,0,231,71,5,460|0|249F|0099C257,28,0000003D,00,00,0493|0199|0000|0000,1,,33")); + + } + +} |