aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 19:01:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 19:01:19 +1300
commitcf0565caceee6856328e481dd23600ed2590c88a (patch)
tree9d2cc8cf8d3eb27b36412eb492ad702581891f1c /test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
parentf9ecee5b732b0c82c8a95bebdb5e275ea479cccc (diff)
downloadtrackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.gz
trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.bz2
trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.zip
Improve unit test verification
Diffstat (limited to 'test/org/traccar/protocol/IntellitracProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/IntellitracProtocolDecoderTest.java25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
index 22f4f8463..351b6136d 100644
--- a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
@@ -1,6 +1,7 @@
package org.traccar.protocol;
-import static org.junit.Assert.assertNotNull;
+import org.traccar.helper.TestDataManager;
+import static org.traccar.helper.DecoderVerifier.verify;
import static org.junit.Assert.assertNull;
import org.junit.Test;
@@ -14,37 +15,37 @@ public class IntellitracProtocolDecoderTest {
assertNull(decoder.decode(null, null, "$OK:TRACKING"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000002,20030217132813,121.646060,25.061725,20,157,133,7,0,11,15,0.096,0.000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1001070919,20130405084206,37.903730,48.011377,0,0,235,10,2,2,0,20.211,0.153"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000002,20030217144230,121.646102,25.061398,0,0,139,0,0,0,0,0.093,0.000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000004,20050513153524,121.646075,25.063675,0,166,50,6,1,0,0,0.118,0.000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000004,20050513154001,121.646075,25.063675,0,166,55,7,1,0,0,0.096,0.000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000002,20030217132813,121.646060,25.061725,20,157,0,7,0,11,15"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"12345,1010000002,20030217132813,121.646060,25.061725,20,157,0,7,0,11,15"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000002,20030217144230,121.646102,25.061398,0,0,0,7,2,0,0"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"$RP:12345,1010000002,20030217144230,121.646102,25.061398,0,0,0,7,2,0,0"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000001,20030105092129,121.651598,25.052325,0,0,33,0,1,0,0"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"1010000001,20030105092129,-121.651598,-25.052325,0,0,33,0,1,0,0"));
}