aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-31 22:35:39 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-31 22:35:39 -0700
commit59416923dcb3a756eaf532cc4259f2f6625c0762 (patch)
tree9082dae6616deac8fda432b7bfd80e4a52b6d9dc /test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
parent79a129dd6327d932133d6b9a50190d3f4927bff9 (diff)
downloadtrackermap-server-59416923dcb3a756eaf532cc4259f2f6625c0762.tar.gz
trackermap-server-59416923dcb3a756eaf532cc4259f2f6625c0762.tar.bz2
trackermap-server-59416923dcb3a756eaf532cc4259f2f6625c0762.zip
Convert project to gradle
Diffstat (limited to 'test/org/traccar/protocol/Tr20ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Tr20ProtocolDecoderTest.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java b/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
deleted file mode 100644
index 76355066b..000000000
--- a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.traccar.protocol;
-
-import org.junit.Test;
-import org.traccar.ProtocolTest;
-
-public class Tr20ProtocolDecoderTest extends ProtocolTest {
-
- @Test
- public void testDecode() throws Exception {
-
- Tr20ProtocolDecoder decoder = new Tr20ProtocolDecoder(null);
-
- verifyPosition(decoder, text(
- "%%123456789012345,A,120101121800,N6000.0000E13000.0000,0,000,0,01034802,150,[Message]"));
-
- verifyNull(decoder, text(
- "%%TRACKPRO01,1"));
-
- verifyPosition(decoder, text(
- "%%868873457748532,A,181109121248,N2237.4181E11403.2857,000,282,NA,47010000,108"));
-
- verifyPosition(decoder, text(
- "%%TR-10,A,050916070549,N2240.8887E11359.2994,0,000,NA,D3800000,150,CFG:resend|"),
- position("2005-09-16 07:05:49.000", true, 22.68148, 113.98832));
-
- verifyPosition(decoder, text(
- "%%TR-10,A,050916070549,N2240.8887E11359.2994,0,000,NA,D3800000,150,CFG:resend|"));
-
- }
-
-}