diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-23 12:15:36 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-23 12:15:36 +1300 |
commit | 7471a8526945833ce68744e579d9b77f3145def1 (patch) | |
tree | 74d971dce460e024e99b511ded6e7ea694810576 /test/org | |
parent | 7a857c727ac11f0c48c7213c81b37aa0d8ef5675 (diff) | |
download | traccar-server-7471a8526945833ce68744e579d9b77f3145def1.tar.gz traccar-server-7471a8526945833ce68744e579d9b77f3145def1.tar.bz2 traccar-server-7471a8526945833ce68744e579d9b77f3145def1.zip |
Implement C2STEK protocol
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/C2stekProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/C2stekProtocolDecoderTest.java b/test/org/traccar/protocol/C2stekProtocolDecoderTest.java new file mode 100644 index 000000000..0a5690f76 --- /dev/null +++ b/test/org/traccar/protocol/C2stekProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class C2stekProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + C2stekProtocolDecoder decoder = new C2stekProtocolDecoder(null); + + verifyPosition(decoder, text( + "PA$353990030327618$D#091117#020928#1#22.537222#114.020948#0.00#0.0#42.1#4183#011#1#101#Wsz-wl001#B0101940#C+3.0,-5.0,+2.0$AP")); + + verifyNull(decoder, text( + "PA$863083030602124$20$AP")); + + } + +} |