aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/CarscopProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/T55ProtocolDecoderTest.java8
2 files changed, 10 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/CarscopProtocolDecoderTest.java b/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
index 8dc29b419..2e9cb60b9 100644
--- a/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CarscopProtocolDecoderTest.java
@@ -21,6 +21,9 @@ public class CarscopProtocolDecoderTest extends ProtocolDecoderTest {
verify(decoder.decode(null, null,
"*040331141830UA012Hi-jack061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));
+ verify(decoder.decode(null, null,
+ "*150817160254UB05CC8011400042499160254A2106.8799S14910.2583E000.0150817158.3511111111L000000"));
+
}
}
diff --git a/test/org/traccar/protocol/T55ProtocolDecoderTest.java b/test/org/traccar/protocol/T55ProtocolDecoderTest.java
index e967671f5..2aa82f400 100644
--- a/test/org/traccar/protocol/T55ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/T55ProtocolDecoderTest.java
@@ -11,7 +11,7 @@ public class T55ProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
T55ProtocolDecoder decoder = new T55ProtocolDecoder(new T55Protocol());
-
+
assertNull(decoder.decode(null, null, "$GPFID,ID123456ABC"));
assertNull(decoder.decode(null, null, "$PGID,359853000144328*0F"));
@@ -59,6 +59,12 @@ public class T55ProtocolDecoderTest extends ProtocolDecoderTest {
verify(decoder.decode(null, null,
"990000561287964,$GPRMC,213516.0,A,4337.216791,N,11611.995877,W,0.0,335.4,181214,,,A * 72"));
+ verify(decoder.decode(null, null,
+ "355096030432529$GPGGA,000000.00,3136.599,S,5213.981,W,1,7,2.13,250.00,M,-16.384,M,3550960304325290.0,1"));
+
+ verify(decoder.decode(null, null,
+ "355096030432529$GPGGA,000000.00,3136.628,S,5213.990,W,1,7,2.13,250.00,M,-16.384,M,0.0,1"));
+
}
}