aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-14 11:25:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-14 11:25:02 +1300
commit9f929e8ab59ac4512c695f22fb1f7dc66349c84a (patch)
tree9bd46b0e818a3008418bfbd7dffba2278eacbab0 /test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
parent2e218a2f028959037eec61b7be5c603c325c8545 (diff)
downloadtrackermap-server-9f929e8ab59ac4512c695f22fb1f7dc66349c84a.tar.gz
trackermap-server-9f929e8ab59ac4512c695f22fb1f7dc66349c84a.tar.bz2
trackermap-server-9f929e8ab59ac4512c695f22fb1f7dc66349c84a.zip
Implement GoSafe protocol (fix #1079)
Diffstat (limited to 'test/org/traccar/protocol/GoSafeProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/GoSafeProtocolDecoderTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
new file mode 100644
index 000000000..604fe55ab
--- /dev/null
+++ b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
@@ -0,0 +1,20 @@
+package org.traccar.protocol;
+
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+
+public class GoSafeProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ GoSafeProtocolDecoder decoder = new GoSafeProtocolDecoder(new TestDataManager(), null, null);
+
+ verify(decoder.decode(null, null, null,
+ "*GS16,351535058709775,100356130215,,SYS:G79W;V1.06;V1.0.2,GPS:A;6;N24.802700;E46.616828;0;0;684;1.35,COT:60,ADC:4.31;0.10,DTT:20000;;0;0;0;1"));
+
+ }
+
+}