aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-11-02 23:22:25 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-11-02 23:22:25 +1300
commit119b1a9562aee0072c034017405df4cc94feaf35 (patch)
tree5f2f1faf98f598fdd5f5f014e01ca489f7119e9f /test/org/traccar
parent73f1943342354f5a3922561ca7ebefad239ce153 (diff)
downloadtrackermap-server-119b1a9562aee0072c034017405df4cc94feaf35.tar.gz
trackermap-server-119b1a9562aee0072c034017405df4cc94feaf35.tar.bz2
trackermap-server-119b1a9562aee0072c034017405df4cc94feaf35.zip
Add PT502 protocol (fix #75)
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/Pt502ProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
new file mode 100644
index 000000000..8b8881bd8
--- /dev/null
+++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import static org.junit.Assert.assertNotNull;
+import org.junit.Test;
+
+public class Pt502ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new TestDataManager());
+
+ assertNotNull(decoder.decode(null, null,
+ "$POS,6094,205523.000,A,1013.6223,N,06728.4248,W,0.0,99.3,011112,,,A/00000,00000/0/23895000//"));
+
+ }
+
+}