aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.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/Tlt2hProtocolDecoderTest.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/Tlt2hProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java
index c096c7ecf..ce9943405 100644
--- a/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.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 Tlt2hProtocolDecoderTest {
@@ -11,21 +12,21 @@ public class Tlt2hProtocolDecoderTest {
Tlt2hProtocolDecoder decoder = new Tlt2hProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"#357671030946351#V500#0000#AUTO#1\r\n" +
"#$GPRMC,223835.000,A,0615.3545,S,10708.5779,E,14.62,97.41,070313,,,D*70\r\n"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"#357671030938911#V500#0000#AUTOSTOP#1\r\n" +
"#00b34d3c$GPRMC,140026.000,A,2623.6452,S,02828.8990,E,0.00,65.44,130213,,,A*4B\r\n"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"#123456789000001#V3338#0000#SMS#3\r\n" +
"#25ee0dff$GPRMC,083945.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n" +
"#25ee0dff$GPRMC,083950.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n" +
"#25ee0dff$GPRMC,083955.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"#353686009063310#353686009063310#0000#AUTO#2\r\n" +
"#239757a9$GPRMC,150252.001,A,2326.6856,S,4631.8154,W,,,260513,,,A*52\r\n" +
"#239757a9$GPRMC,150322.001,A,2326.6854,S,4631.8157,W,,,260513,,,A*55"));