aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-16 14:38:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-12-16 14:38:38 +1300
commitb0151a400565a0affab756ff02e183d269220be9 (patch)
tree68e3a2f4280f249e1df110873312b2b1908e99cc /test/org/traccar
parentb3e1a81f722ddf93ba70f16686301022bfe2454e (diff)
downloadtrackermap-server-b0151a400565a0affab756ff02e183d269220be9.tar.gz
trackermap-server-b0151a400565a0affab756ff02e183d269220be9.tar.bz2
trackermap-server-b0151a400565a0affab756ff02e183d269220be9.zip
Handle short Totem messages
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/TotemFrameDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TotemFrameDecoderTest.java b/test/org/traccar/protocol/TotemFrameDecoderTest.java
index 2fbb8ec14..0d3e69465 100644
--- a/test/org/traccar/protocol/TotemFrameDecoderTest.java
+++ b/test/org/traccar/protocol/TotemFrameDecoderTest.java
@@ -12,6 +12,10 @@ public class TotemFrameDecoderTest extends ProtocolTest {
TotemFrameDecoder decoder = new TotemFrameDecoder();
verifyFrame(
+ binary("24243030323542423836323031303033373239343836313345"),
+ decoder.decode(null, null, binary("24243030323542423836323031303033373239343836313345")));
+
+ verifyFrame(
binary("24243030363545363836313137323033353932363639357c3137303931323135333235372c2d37392e3337333835332c34332e3736353631392c302c302c7c3441"),
decoder.decode(null, null, binary("24243030363545363836313137323033353932363639357c3137303931323135333235372c2d37392e3337333835332c34332e3736353631392c302c302c7c3441")));