aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Gl100ProtocolDecoderTest.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/Gl100ProtocolDecoderTest.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/Gl100ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Gl100ProtocolDecoderTest.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java b/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java
index b705e446e..6cfa34501 100644
--- a/test/org/traccar/protocol/Gl100ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gl100ProtocolDecoderTest.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 org.junit.Test;
public class Gl100ProtocolDecoderTest {
@@ -11,28 +12,28 @@ public class Gl100ProtocolDecoderTest {
Gl100ProtocolDecoder decoder = new Gl100ProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTSOS,359231030000010,0,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTRTL,359231030000010,0,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTEST,359231030000010,0,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTSZI,359231030000010,0,3,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTLBC,359231030000010,02132523415,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTTRI,359231030000010,1,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,11F0,0102120204"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"+RESP:GTTRI,359231030000010,2,0,0,1,4.3,92,70.0,1,121.354335,31.222073,20090101000000,0460,0000,18d8,6141,00,0,0,1,-3.6,145,30.0,2,121.354442,31.221940,20090101000100,0460,0000,18d8,6141,00,11F0,0102120204"));
- //assertNotNull(decoder.decode(null, null,
+ //verify(decoder.decode(null, null,
// "AT+GTHBD=HeartBeat,359231030000010,20090101000000,11F0,0102120204"));
}