aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-12-05 22:56:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-12-05 22:56:14 +1300
commitb444e789127951b902d557517a520d44c59f15d2 (patch)
tree34d9b78d6606e52906f7633059f40d71dad77b00 /test/org
parent206600cd599e03eaa095619fc8a52b742d3413a1 (diff)
downloadtrackermap-server-b444e789127951b902d557517a520d44c59f15d2.tar.gz
trackermap-server-b444e789127951b902d557517a520d44c59f15d2.tar.bz2
trackermap-server-b444e789127951b902d557517a520d44c59f15d2.zip
Added meitrack protocol (fix #103)
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/MeitrackProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
new file mode 100644
index 000000000..7261443d5
--- /dev/null
+++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import static org.junit.Assert.assertNotNull;
+import org.junit.Test;
+
+public class MeitrackProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ MeitrackProtocolDecoder decoder = new MeitrackProtocolDecoder(new TestDataManager());
+
+ assertNotNull(decoder.decode(null, null,
+ "$$]138,012896000475498,AAA,35,-6.138255,106.910545,121205074600,A,5,18,0,0,0,49,3800,24826,510|10|0081|4F4F,0000,0011|0012|0010|0963|0000,,*94"));
+
+ assertNotNull(decoder.decode(null, null,
+ "$$d138,012896000475498,AAA,35,-6.138255,106.910545,121205074819,A,7,18,0,0,0,49,3800,24965,510|10|0081|4F4F,0000,000D|0010|0012|0963|0000,,*BF"));
+
+ }
+
+}