aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-20 10:08:50 +1200
committerGitHub <noreply@github.com>2016-09-20 10:08:50 +1200
commit4dbc7e9695bc0e80c9c2568a7dbfd2508189ef97 (patch)
tree2e50a509375d1dc8b4569bcd75e73e180502bb06 /test
parent5c32bb71b06c5f08506e9d1f49925c1d6b833faf (diff)
parent24c846056fc6bdca120ce96c32d75ff6c36f3ba0 (diff)
downloadtraccar-server-4dbc7e9695bc0e80c9c2568a7dbfd2508189ef97.tar.gz
traccar-server-4dbc7e9695bc0e80c9c2568a7dbfd2508189ef97.tar.bz2
traccar-server-4dbc7e9695bc0e80c9c2568a7dbfd2508189ef97.zip
Merge pull request #2339 from nyash/master
Add jpkorjar protocol support
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java b/test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java
new file mode 100644
index 000000000..44cdbe2f2
--- /dev/null
+++ b/test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java
@@ -0,0 +1,25 @@
+package org.traccar.protocol;
+
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class JpKorjarProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ JpKorjarProtocolDecoder decoder = new JpKorjarProtocolDecoder(new JpKorjarProtocol());
+
+ verifyPosition(decoder, text(
+ "KORJAR.PL,329587014519383,160910144240,52.247254N,021.013375E,0.00,1,F:4.18V,1 260 01 794B 3517,"));
+
+ verifyPosition(decoder, text(
+ "KORJAR.PL,329587014519383,160910144240,52.895515N,021.949151E,6.30,212,F:3.94V,0 260 01 794B 3519,"));
+
+ verifyPosition(decoder, text(
+ "KORJAR.PL,329587014519383,160910144240,52.895596N,021.949343E,12.46,087,L:2.18V,1 260 01 794B 3517,"));
+
+ }
+
+}