aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authornyash <nyashh@gmail.com>2016-09-18 14:42:13 +0200
committerGitHub <noreply@github.com>2016-09-18 14:42:13 +0200
commit3a0a2ec7c2a3cd418300c90e7e44c0d86499476c (patch)
tree22fa50ec9069942ce55c6412521b418da7215257 /test/org/traccar
parent786a6b0b5f3777583a6c6fe6d0365bbcbf4e708b (diff)
downloadtrackermap-server-3a0a2ec7c2a3cd418300c90e7e44c0d86499476c.tar.gz
trackermap-server-3a0a2ec7c2a3cd418300c90e7e44c0d86499476c.tar.bz2
trackermap-server-3a0a2ec7c2a3cd418300c90e7e44c0d86499476c.zip
Add jpkorjar protocol decoder test
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java19
1 files changed, 19 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..d253af99c
--- /dev/null
+++ b/test/org/traccar/protocol/JpKorjarProtocolDecoderTest.java
@@ -0,0 +1,19 @@
+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,"));
+
+ }
+
+}