aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-02 03:41:11 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-02 03:41:11 +1200
commit8ec8955876bbfaf9e2856ec50f2a011b1dee0eca (patch)
tree60ef7d0150a9e157475757359cd6503a4f2e2481 /test
parent5cbf84b30f9b55f7c199289782b28ac71e0b8776 (diff)
downloadtrackermap-server-8ec8955876bbfaf9e2856ec50f2a011b1dee0eca.tar.gz
trackermap-server-8ec8955876bbfaf9e2856ec50f2a011b1dee0eca.tar.bz2
trackermap-server-8ec8955876bbfaf9e2856ec50f2a011b1dee0eca.zip
Implement Cradlepoint protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/CradlepointProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CradlepointProtocolDecoderTest.java b/test/org/traccar/protocol/CradlepointProtocolDecoderTest.java
new file mode 100644
index 000000000..4f37d3e1e
--- /dev/null
+++ b/test/org/traccar/protocol/CradlepointProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class CradlepointProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ CradlepointProtocolDecoder decoder = new CradlepointProtocolDecoder(new CradlepointProtocol());
+
+ verifyPosition(decoder, text(
+ "+12084014675,162658,4337.174385,N,11612.338373,W,0.0,,Verizon,,-71,-44,-11,,"));
+
+ }
+
+}