diff options
Diffstat (limited to 'test/org/traccar/protocol/LaipacProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/LaipacProtocolDecoderTest.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/org/traccar/protocol/LaipacProtocolDecoderTest.java b/test/org/traccar/protocol/LaipacProtocolDecoderTest.java index bd8059ea5..f6bdf5d9e 100644 --- a/test/org/traccar/protocol/LaipacProtocolDecoderTest.java +++ b/test/org/traccar/protocol/LaipacProtocolDecoderTest.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; @@ -16,31 +17,31 @@ public class LaipacProtocolDecoderTest { assertNull(decoder.decode(null, null, "$ECHK,99999999,0*35")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,0,3.727,17,1,0,0*37")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,a,4351.0542,N,07923.5445,W,0.29,78.66,180703,0,3.727,17,1,0,0*17")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,v,4351.0542,N,07923.5445,W,0.29,78.66,180703,0,3.727,17,1,0,0*00")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,r,4351.0542,N,07923.5445,W,0.29,78.66,180703,0,3.727,17,1,0,0*04")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,S,3.727,17,1,0,0*54")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,T,3.727,17,1,0,0*53")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,3,3.727,17,1,0,0*34")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,X,3.727,17,1,0,0*5F")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "$AVRMC,99999999,164339,A,4351.0542,N,07923.5445,W,0.29,78.66,180703,4,3.727,17,1,0,0*33")); } |