aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-29 15:48:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-29 15:49:15 +1300
commit7d63248072efe65d61520d694b2c1369147594d4 (patch)
treea9cebcac5b7ecd43f4b223a3a816b03859ed56c5 /test/org
parent2df748f53128197c158a62ca5c3f6df0c70d4119 (diff)
downloadtraccar-server-7d63248072efe65d61520d694b2c1369147594d4.tar.gz
traccar-server-7d63248072efe65d61520d694b2c1369147594d4.tar.bz2
traccar-server-7d63248072efe65d61520d694b2c1369147594d4.zip
Implement Pretrace protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/PretraceProtocolDecoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/PretraceProtocolDecoderTest.java b/test/org/traccar/protocol/PretraceProtocolDecoderTest.java
new file mode 100644
index 000000000..ae7e48f14
--- /dev/null
+++ b/test/org/traccar/protocol/PretraceProtocolDecoderTest.java
@@ -0,0 +1,18 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class PretraceProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ PretraceProtocolDecoder decoder = new PretraceProtocolDecoder(new PretraceProtocol());
+
+ verifyPosition(decoder, text(
+ "(867967021915915U1110A1701201500102238.1700N11401.9324E000264000000000009001790000000,&P11A4,F1050^47"));
+
+ }
+
+}