aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-15 11:51:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-15 11:51:14 +1300
commita9f5bfb5d69d88ee763c67e8a2f4b4ecc512394b (patch)
tree29baf216a34344288bcad81fe212f4c389638bff /test/org
parent5868e9c00531b7defdfa90d05c1ea8dc987d6011 (diff)
downloadtrackermap-server-a9f5bfb5d69d88ee763c67e8a2f4b4ecc512394b.tar.gz
trackermap-server-a9f5bfb5d69d88ee763c67e8a2f4b4ecc512394b.tar.bz2
trackermap-server-a9f5bfb5d69d88ee763c67e8a2f4b4ecc512394b.zip
Implement Ardi_01 protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/Ardi01ProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Ardi01ProtocolDecoderTest.java b/test/org/traccar/protocol/Ardi01ProtocolDecoderTest.java
new file mode 100644
index 000000000..7e4a2eb95
--- /dev/null
+++ b/test/org/traccar/protocol/Ardi01ProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.helper.TestDataManager;
+
+import static org.junit.Assert.assertNull;
+import static org.traccar.helper.DecoderVerifier.verify;
+
+public class Ardi01ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Ardi01ProtocolDecoder decoder = new Ardi01ProtocolDecoder(new TestDataManager(), null, null);
+
+ verify(decoder.decode(null, null,
+ "013227003054776,20141010052719,24.4736042,56.8445807,110,289,40,7,5,78,-1"));
+
+ }
+
+}