aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-22 15:26:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-22 15:26:17 +1300
commit1ca95d099df96d576a0eaddc6e42b5b41aed3e06 (patch)
tree65ae84eb5e301317263fd72c31cc54922c71eb96 /test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
parent122a26d2822f35b27b9cb0b217916d6b821d9654 (diff)
downloadtrackermap-server-1ca95d099df96d576a0eaddc6e42b5b41aed3e06.tar.gz
trackermap-server-1ca95d099df96d576a0eaddc6e42b5b41aed3e06.tar.bz2
trackermap-server-1ca95d099df96d576a0eaddc6e42b5b41aed3e06.zip
Refactor protocol unit testing
Diffstat (limited to 'test/org/traccar/protocol/FlextrackProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/FlextrackProtocolDecoderTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java b/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
index 6b22f2906..049b0e95e 100644
--- a/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/FlextrackProtocolDecoderTest.java
@@ -1,9 +1,8 @@
package org.traccar.protocol;
import org.junit.Test;
+import org.traccar.ProtocolDecoderTest;
-import static org.junit.Assert.assertNull;
-import static org.traccar.helper.DecoderVerifier.verify;
public class FlextrackProtocolDecoderTest extends ProtocolDecoderTest {
@@ -12,16 +11,16 @@ public class FlextrackProtocolDecoderTest extends ProtocolDecoderTest {
FlextrackProtocolDecoder decoder = new FlextrackProtocolDecoder(new FlextrackProtocol());
- assertNull(decoder.decode(null, null,
+ verifyNothing(decoder, text(
"-1,LOGON,7000000123,8945000000"));
- assertNull(decoder.decode(null, null,
+ verifyNothing(decoder, text(
"-1,LOGON,1080424008,8945020110126633198"));
- verify(decoder.decode(null, null,
+ verifyPosition(decoder, text(
"-2,UNITSTAT,20060101,123442,1080424008,N0.00.0000,E0.00.0000,0,0,0,4129,-61,2,23866,0,999,A214,63,2EE2,3471676"));
- verify(decoder.decode(null, null,
+ verifyPosition(decoder, text(
"-2,UNITSTAT,20050205,181923,7000004634,N55.46.0812,E009.21.1665,122,198,6,3934,-81,01A8,23802,213,55,37FD,45,0055,12878"));
}