aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-01 10:35:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-01 10:35:55 +1300
commitcb5788df82324d999e1912a5936ade351f3da8da (patch)
tree24ee533d555221e4a1d56d9605fd1f2f8ae9e20c /test/org/traccar/protocol/XirgoProtocolDecoderTest.java
parentc988200458e48b3909abfb18689faadd458acf91 (diff)
downloadtrackermap-server-cb5788df82324d999e1912a5936ade351f3da8da.tar.gz
trackermap-server-cb5788df82324d999e1912a5936ade351f3da8da.tar.bz2
trackermap-server-cb5788df82324d999e1912a5936ade351f3da8da.zip
Implement Xirgo protocol
Diffstat (limited to 'test/org/traccar/protocol/XirgoProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/XirgoProtocolDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/XirgoProtocolDecoderTest.java b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
new file mode 100644
index 000000000..81133104c
--- /dev/null
+++ b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
+import org.junit.Test;
+
+public class XirgoProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ XirgoProtocolDecoder decoder = new XirgoProtocolDecoder(new TestDataManager(), null, null);
+
+ verify(decoder.decode(null, null, null,
+ "$$354898045650537,6031,2015/02/26,15:47:26,33.42552,-112.30308,287.8,0,0,0,0,0.0,7,1.2,2,0.0,12.2,22,1,0,82.3"));
+
+ }
+
+}