aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/LdplProtocolDecoderTest.java
diff options
context:
space:
mode:
authordrecchia <danilo@deltatecnologia.com>2016-06-08 21:45:47 -0300
committerdrecchia <danilo@deltatecnologia.com>2016-06-08 21:45:47 -0300
commit323800044587ccecc0daaa7b6a9fdb45b614ac65 (patch)
tree73517d0dcbf3809f04f1058475b4124c612e32ee /test/org/traccar/protocol/LdplProtocolDecoderTest.java
parent3627e1522efe5870a5efc14a1c6bae9fad615840 (diff)
downloadtrackermap-server-323800044587ccecc0daaa7b6a9fdb45b614ac65.tar.gz
trackermap-server-323800044587ccecc0daaa7b6a9fdb45b614ac65.tar.bz2
trackermap-server-323800044587ccecc0daaa7b6a9fdb45b614ac65.zip
- Ldpl protocol implemented.
Diffstat (limited to 'test/org/traccar/protocol/LdplProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/LdplProtocolDecoderTest.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/LdplProtocolDecoderTest.java b/test/org/traccar/protocol/LdplProtocolDecoderTest.java
new file mode 100644
index 000000000..0900d8c42
--- /dev/null
+++ b/test/org/traccar/protocol/LdplProtocolDecoderTest.java
@@ -0,0 +1,23 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class LdplProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ LdplProtocolDecoder decoder = new LdplProtocolDecoder(new LdplProtocol());
+
+ verifyPosition(decoder, text(
+ "*ID1,863071011086474,210314,153218,A,1831.4577,N,07351.1433,E,0.79,240.64,9,20,A,1,4.20,0,1,01,1,0,0,A01,R,935D#"),
+ position("2014-03-21 15:32:18.000", true, 18.524295, 73.852388333333));
+
+ verifyPosition(decoder, text(
+ "*ID1,863071011086474,210314,162752,A,1831.4412,N,07351.0983,E,0.04,213.84,9,25,A,1,4.20,0,1,01,1,0,0,A01,L,EA01#"));
+
+
+ }
+
+}