aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-09 13:48:49 +1300
committerGitHub <noreply@github.com>2018-03-09 13:48:49 +1300
commit3d95782613b6f586434c66f45216a788fa3199db (patch)
tree601b98db010d9657f98f375f09c17a1fac7fd2c0 /test
parentc2ed376ea2bac8d2e6ac0ffb75be9e60f98fe92b (diff)
parent911c44c63567dff7af58544d998adc22d23df672 (diff)
downloadtrackermap-server-3d95782613b6f586434c66f45216a788fa3199db.tar.gz
trackermap-server-3d95782613b6f586434c66f45216a788fa3199db.tar.bz2
trackermap-server-3d95782613b6f586434c66f45216a788fa3199db.zip
Merge pull request #3784 from vblack/master
Add support for OpenGTS compatible clients (GPSLogger for Android)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/OpenGtsProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/OpenGtsProtocolDecoderTest.java b/test/org/traccar/protocol/OpenGtsProtocolDecoderTest.java
new file mode 100644
index 000000000..0e6be8d10
--- /dev/null
+++ b/test/org/traccar/protocol/OpenGtsProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class OpenGtsProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ OpenGtsProtocolDecoder decoder = new OpenGtsProtocolDecoder(new OpenGtsProtocol());
+
+ verifyPosition(decoder, request(
+ "/?id=123456789012345&dev=dev_name&acct=account&batt=0&code=0xF020&alt=160.5&gprmc=$GPRMC,191555,A,5025.46624,N,3030.39937,E,0.000000,0.000000,200218,,*2F"));
+
+ }
+
+}