aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-17 23:09:08 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-17 23:09:08 -0700
commitdef60bd842f57d2f82057da2bd51eff757459750 (patch)
treea041fc579665ef81be4df6012d18359d144147f0 /test/org
parentecaa84400f3b088e89b92d3331e183d7cf262d46 (diff)
downloadtrackermap-server-def60bd842f57d2f82057da2bd51eff757459750.tar.gz
trackermap-server-def60bd842f57d2f82057da2bd51eff757459750.tar.bz2
trackermap-server-def60bd842f57d2f82057da2bd51eff757459750.zip
Custom Xirgo XT2169A protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/XirgoProtocolDecoderTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/XirgoProtocolDecoderTest.java b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
index 18cf51df0..b2e023574 100644
--- a/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
@@ -6,6 +6,18 @@ import org.traccar.ProtocolTest;
public class XirgoProtocolDecoderTest extends ProtocolTest {
@Test
+ public void testDecodeCustom() throws Exception {
+
+ XirgoProtocolDecoder decoder = new XirgoProtocolDecoder(null);
+
+ decoder.setForm("UID,EV,D,T,LT,LN,AL,GSPT,SV,HP,BV,CQ,MI,GS,SI,IG,OT");
+
+ verifyPosition(decoder, text(
+ "$$184800793,4002,03/15/2019,21:30:21,46.848582,-114.022237,9733,0.0,18,1.1,13.605,20,0,3,89011703278246523602,2,0##"));
+
+ }
+
+ @Test
public void testDecodeNew() throws Exception {
XirgoProtocolDecoder decoder = new XirgoProtocolDecoder(null);