aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar')
-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);