aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-07-26 21:06:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-07-26 21:06:27 +1200
commit6cec98cfcbad9b62877c93fa085bfaab5378f8a8 (patch)
tree4d2936e2788b3cd57592ec568c777c57a5107972 /test/org
parentf4d73d79fbee9859ce8da66c7c0ad4af8bca9b9e (diff)
downloadtrackermap-server-6cec98cfcbad9b62877c93fa085bfaab5378f8a8.tar.gz
trackermap-server-6cec98cfcbad9b62877c93fa085bfaab5378f8a8.tar.bz2
trackermap-server-6cec98cfcbad9b62877c93fa085bfaab5378f8a8.zip
Start pt3000 implementation
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/Pt3000ProtocolDecoderTest.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt3000ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt3000ProtocolDecoderTest.java
new file mode 100644
index 000000000..546256725
--- /dev/null
+++ b/test/org/traccar/protocol/Pt3000ProtocolDecoderTest.java
@@ -0,0 +1,23 @@
+package org.traccar.protocol;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+
+public class Pt3000ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Pt3000ProtocolDecoder decoder = new Pt3000ProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
+
+ /*assertNotNull(decoder.decode(null, null,
+ "%356939010012099,$GPRMC,124945.752,A,4436.6245,N,01054.4634,E,0.11,358.52,060408,,,A,+393334347445,N028d"));
+
+ assertNotNull(decoder.decode(null, null,
+ "%356939010014433,$GPRMC,172821.000,A,4019.5147,N,00919.1160,E,0.00,,010613,,,A,+393998525043,N098d"));*/
+
+ }
+
+}