aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Tk103ProtocolDecoderTest.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/Tk103ProtocolDecoderTest.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/Tk103ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Tk103ProtocolDecoderTest.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java
index 90d49b69a..91d438f58 100644
--- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.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,25 +15,25 @@ public class Tk103ProtocolDecoderTest {
assertNull(decoder.decode(null, null, "(090411121854BP0000001234567890HSO"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(035988863964BP05000035988863964110524A4241.7977N02318.7561E000.0123536356.5100000000L000946BB"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(013632782450BP05000013632782450120803V0000.0000N00000.0000E000.0174654000.0000000000L00000000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(013666666666BP05000013666666666110925A1234.5678N01234.5678W000.002033490.00000000000L000024DE"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(013666666666BO012110925A1234.5678N01234.5678W000.0025948118.7200000000L000024DE"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"\n\n\n(088045133878BR00130228A5124.5526N00117.7152W000.0233614352.2200000000L01B0CF1C"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(008600410203BP05000008600410203130721A4152.5790N01239.2770E000.0145238173.870100000AL0000000"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"(013012345678BR00130515A4843.9703N01907.6211E000.019232800000000000000L00009239"));
}