aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/T55ProtocolDecoderTest.java27
1 files changed, 23 insertions, 4 deletions
diff --git a/test/org/traccar/protocol/T55ProtocolDecoderTest.java b/test/org/traccar/protocol/T55ProtocolDecoderTest.java
index ddabc8ee4..b7adee89b 100644
--- a/test/org/traccar/protocol/T55ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/T55ProtocolDecoderTest.java
@@ -10,13 +10,17 @@ public class T55ProtocolDecoderTest extends ProtocolDecoderTest {
T55ProtocolDecoder decoder = new T55ProtocolDecoder(new T55Protocol());
- verifyNothing(decoder, text( "$GPFID,ID123456ABC"));
+ verifyNothing(decoder, text(
+ "$GPFID,ID123456ABC"));
- verifyNothing(decoder, text( "$PGID,359853000144328*0F"));
+ verifyNothing(decoder, text(
+ "$PGID,359853000144328*0F"));
- verifyNothing(decoder, text( "$PCPTI,CradlePoint Test,184453,184453.0,6F*57"));
+ verifyNothing(decoder, text(
+ "$PCPTI,CradlePoint Test,184453,184453.0,6F*57"));
- verifyNothing(decoder, text( "IMEI 351467108700000"));
+ verifyNothing(decoder, text(
+ "IMEI 351467108700000"));
verifyPosition(decoder, text(
"$GPRMC,012006,A,4828.10,N,1353.52,E,0.00,0.00,180915,020.3,E*42"));
@@ -68,4 +72,19 @@ public class T55ProtocolDecoderTest extends ProtocolDecoderTest {
}
+ @Test
+ public void testMaxonDecode() throws Exception {
+
+ // Maxon devices can send NMEA before identification
+
+ T55ProtocolDecoder decoder = new T55ProtocolDecoder(new T55Protocol());
+
+ verifyNothing(decoder, text(
+ "$GPRMC,012006,A,4828.10,N,1353.52,E,0.00,0.00,180915,020.3,E*42"));
+
+ verifyPosition(decoder, text(
+ "$GPFID,ID123456ABC"));
+
+ }
+
}