diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-05 08:34:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-05 07:34:25 +1300 |
commit | 1e88580b51646da83b17e9f2a794096607b1ab97 (patch) | |
tree | 9cc090262cb8439e2bd9bdca5fa36348b70d8cff /test/org | |
parent | 006c4969075ab8c41910c1fc5d8171a9b85e7bfa (diff) | |
download | traccar-server-1e88580b51646da83b17e9f2a794096607b1ab97.tar.gz traccar-server-1e88580b51646da83b17e9f2a794096607b1ab97.tar.bz2 traccar-server-1e88580b51646da83b17e9f2a794096607b1ab97.zip |
Implement GT30 GTP protocol
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/Gt30ProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java new file mode 100644 index 000000000..f33875ce1 --- /dev/null +++ b/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class Gt30ProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + Gt30ProtocolDecoder decoder = new Gt30ProtocolDecoder(new Gt30Protocol()); + + verifyPosition(decoder, text( + "$$005B3037811124 9955161049.000,A,3802.9474,N,02241.1897,E,0.00,,021115,,*15|2.9|5A639")); + + } + +} |