aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/SanavProtocolDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/protocol/SanavProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/SanavProtocolDecoderTest.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/org/traccar/protocol/SanavProtocolDecoderTest.java b/test/org/traccar/protocol/SanavProtocolDecoderTest.java
index 83895245b..d6d06edaa 100644
--- a/test/org/traccar/protocol/SanavProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/SanavProtocolDecoderTest.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 SanavProtocolDecoderTest {
@@ -11,22 +12,22 @@ public class SanavProtocolDecoderTest {
SanavProtocolDecoder decoder = new SanavProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"imei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,*05,AUTO-4095mv"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"imei:352024028980000rmc:$GPRMC,093604.354,A,4735.0862,N,01905.2146,E,0.00,0.00,171013,,*09,AUTO-4103mv"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"imei:352024027800000rmc:$GPRMC,000025.000,A,4735.0349,N,01905.2899,E,0.00,202.97,171013,,*03,3950mV,AUTO"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"imei:352024020976845rmc:$GPRMC,000201.000,A,4655.7043,N,01941.3796,E,0.54,159.14,171013,,,A*65,AUTO"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"imei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,"));
- assertNotNull(decoder.decode(null, null,
+ verify(decoder.decode(null, null,
"65,AUTOimei=352024028982787&rmc=$GPRMC,103048.000,A,4735.0399,N,01905.2895,E,0.00,0.00,171013,,"));
}