aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-10-23 09:36:18 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-10-23 09:36:18 +1300
commitc2a42373c04c7615f45bfaff3ddbe4d939055308 (patch)
tree0bc549718ce29528ad0d8a88d6053edac7be8b38 /test/org/traccar/protocol
parent435ae8233c3cca5da88c4ba774b90aff780e9b88 (diff)
downloadtrackermap-server-c2a42373c04c7615f45bfaff3ddbe4d939055308.tar.gz
trackermap-server-c2a42373c04c7615f45bfaff3ddbe4d939055308.tar.bz2
trackermap-server-c2a42373c04c7615f45bfaff3ddbe4d939055308.zip
Add Xexus unit test
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java b/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java
index 0018ce013..e6f4c4f80 100644
--- a/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java
@@ -1,5 +1,6 @@
package org.traccar.protocol;
+import static org.junit.Assert.assertNull;
import org.traccar.helper.TestDataManager;
import static org.traccar.helper.DecoderVerifier.verify;
import org.junit.Test;
@@ -10,6 +11,9 @@ public class Xexun2ProtocolDecoderTest {
public void testDecode() throws Exception {
Xexun2ProtocolDecoder decoder = new Xexun2ProtocolDecoder(new TestDataManager(), null, null);
+
+ assertNull(decoder.decode(null, null,
+ ",+48606717068,,L,, imei:012207005047292,,,F:4.28V,1,52,11565,247,01,000E,1FC5"));
verify(decoder.decode(null, null,
"130302125349,+79604870506,GPRMC,085349.000,A,4503.2392,N,03858.5660,E,6.95,154.65,020313,,,A*6C,F,, imei:012207007744243,03,-1.5,F:4.15V,1,139,28048,250,01,278A,5072"));