aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-11-14 01:35:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-11-14 01:35:19 +1300
commite6e762c1c9416cf52421d0b26dbd38f2b70e2c3f (patch)
treeeba707a88e762c20bc5be96c26703f7d5640c7d4 /test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
parent0a8f30a572b1e64ff3e1d67281bf9fa3f40b9ccb (diff)
downloadtrackermap-server-e6e762c1c9416cf52421d0b26dbd38f2b70e2c3f.tar.gz
trackermap-server-e6e762c1c9416cf52421d0b26dbd38f2b70e2c3f.tar.bz2
trackermap-server-e6e762c1c9416cf52421d0b26dbd38f2b70e2c3f.zip
Fix typo in protocol name
Diffstat (limited to 'test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java b/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
new file mode 100644
index 000000000..c0f076014
--- /dev/null
+++ b/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
@@ -0,0 +1,33 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class Ivt401ProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Ivt401ProtocolDecoder decoder = new Ivt401ProtocolDecoder(new Ivt401Protocol());
+
+ verifyPosition(decoder, text(
+ "(TLN,356917050291991,090315,133525,+12.990582,+77.589080,0,0,944,13,1,5,000,00,0.00,10.88,6.31,29.55,0.00,0,0.99,66,0,0,88,95)"));
+
+ verifyPosition(decoder, text(
+ "(TLN,356917050269732,061117,220046,+21.134126,+74.798561,51,28,204,14,1,5,100,00,0.0,13.92,7.82,23.74,0.0,1,1.33,-9,0,429,4848,67)"));
+
+ verifyPosition(decoder, text(
+ "(TLN,356917050269732,061117,220116,+21.137619,+74.800659,52,28,202,14,1,3,100,00,0.0,13.92,7.82,23.74,0.0,1,1.26,-23,0,445,4849,125)"));
+
+ verifyPosition(decoder, text(
+ "(TLA,356917050217335,190115,011336,+12.932403,+79.898887,0,0,71.7,08,3,10,000,00,0.00,10.41,7.07,26.84,0.00,0,0.99,63,0,0,0,0,0,0,000000000,0,0,0,0,0,0,0,2,0,0,14,86)"));
+
+ verifyPosition(decoder, text(
+ "(TLB,356917050291991,090315,133525,+12.990582,+77.589080,0,0,944,13,1,5,000,00,0.00,10.88,6.31,29.55,0.00,0,0.99,66,0,0,88,95)"));
+
+ verifyPosition(decoder, text(
+ "(TLL,356917050217335,190115,011336,+12.932403,+79.898887,0,0,71.7,08,3,10,000,00,0.00,10.41,7.07,26.84,0.00,0,0.99,63,0,0,0,0,0,0,000000000,0,0,0,0,0,0,0,2,0,0,14,86)"));
+
+ }
+
+}