aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-11-12 18:24:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-11-12 18:24:03 +1300
commita6b5b7674b0a1dd1d92bbdeaf052715b6b9d9f41 (patch)
treebc99bf0c242e6b5a53cbaa33def07efa15c434ef /test
parentbbe846c51f189c16a569af8c21b7464087b329ab (diff)
downloadtrackermap-server-a6b5b7674b0a1dd1d92bbdeaf052715b6b9d9f41.tar.gz
trackermap-server-a6b5b7674b0a1dd1d92bbdeaf052715b6b9d9f41.tar.bz2
trackermap-server-a6b5b7674b0a1dd1d92bbdeaf052715b6b9d9f41.zip
Fix totem frame decoder (fix #453)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/TotemProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TotemProtocolDecoderTest.java b/test/org/traccar/protocol/TotemProtocolDecoderTest.java
index fc78f3915..2260fc13a 100644
--- a/test/org/traccar/protocol/TotemProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TotemProtocolDecoderTest.java
@@ -57,6 +57,12 @@ public class TotemProtocolDecoderTest {
verify(decoder.decode(null, null,
"$$B3359772032399074|AA$GPRMC,234603.000,A,3648.2179,N,01008.0962,E,0.00,,030412,,,A*74|01.8|01.0|01.5|000000000000|20120403234603|14251914|00000000|0012D888|0000|0.0000|3674|940B"));
+
+ verify(decoder.decode(null, null,
+ "$$B2356895037578518|AA$GPRMC,173829.000,A,3740.4107,N,02129.9815,E,0.00,,111113,,,A*7B|02.6|01.6|02.1|000000000000|20131111173829|14041251|00000000|002E0DD7|0000|0.0240|6010|8128"));
+
+ verify(decoder.decode(null, null,
+ "$$B2356895037578518|AA$GPRMC,203823.000,A,3740.3285,N,02129.9295,E,0.00,,111113,,,A*79|01.5|01.0|01.1|000000000000|20131111203823|14041251|00000000|002E0DD7|0000|0.0000|6371|3824"));
}