aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 11:26:54 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 11:26:54 +1200
commit7aab928fca7907f6204c8119acc0defaff750147 (patch)
tree6e2a776cd87779baf50f8d1cd0d10b5cee7e70b3 /test
parentfe52864e919b786b9dd182f2792e652d102fcb21 (diff)
downloadtrackermap-server-7aab928fca7907f6204c8119acc0defaff750147.tar.gz
trackermap-server-7aab928fca7907f6204c8119acc0defaff750147.tar.bz2
trackermap-server-7aab928fca7907f6204c8119acc0defaff750147.zip
Add Intellitrac unit test case
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/IntellitracProtocolDecoderTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
index 59fcd7dab..d4f88e42d 100644
--- a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
@@ -1,9 +1,8 @@
package org.traccar.protocol;
-import org.traccar.helper.TestIdentityManager;
-import static org.traccar.helper.DecoderVerifier.verify;
import static org.junit.Assert.assertNull;
import org.junit.Test;
+import static org.traccar.helper.DecoderVerifier.verify;
public class IntellitracProtocolDecoderTest extends ProtocolDecoderTest {
@@ -13,6 +12,9 @@ public class IntellitracProtocolDecoderTest extends ProtocolDecoderTest {
IntellitracProtocolDecoder decoder = new IntellitracProtocolDecoder(new IntellitracProtocol());
assertNull(decoder.decode(null, null, "$OK:TRACKING"));
+
+ verify(decoder.decode(null, null,
+ "101000001,20100304075545,121.64547,25.06200,0,0,61,7,2,1,0,0.046,0.000,20100304075546,0"));
verify(decoder.decode(null, null,
"1010000002,20030217132813,121.646060,25.061725,20,157,133,7,0,11,15,0.096,0.000"));