aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/ManPowerProtocolDecoderTest.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/ManPowerProtocolDecoderTest.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/ManPowerProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/ManPowerProtocolDecoderTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/org/traccar/protocol/ManPowerProtocolDecoderTest.java b/test/org/traccar/protocol/ManPowerProtocolDecoderTest.java
index 02db3276b..eba2bc3f0 100644
--- a/test/org/traccar/protocol/ManPowerProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/ManPowerProtocolDecoderTest.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 ManPowerProtocolDecoderTest {
@@ -11,13 +12,13 @@ public class ManPowerProtocolDecoderTest {
ManPowerProtocolDecoder decoder = new ManPowerProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"simei:352581250259539,,,tracker,51,24,1.73,130426023608,A,3201.5462,N,03452.2975,E,0.01,28B9,1DED,425,01,1x0x0*0x1*60x+2,en-us,"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"simei:352581250259539,,,weather,99,20,0.00,130426032310,V,3201.5517,N,03452.3064,E,1.24,28B9,25A1,425,01,1x0x0*0x1*60x+2,en-us,"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"simei:352581250259539,,,SMS,54,19,90.41,130426172308,V,3201.5523,N,03452.2705,E,0.14,28B9,01A5,425,01,1x0x0*0x1*60x+2,en-us,"));
}