diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-10 17:15:19 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-10 17:15:19 -0800 |
commit | 985c3a324a566f803ec83658680974a7f75b0b7d (patch) | |
tree | 7c75b18fbf6d842faab9d3d5fd586778d2d5c186 /src/test/java/org | |
parent | aefc13c7e57d4c6c8c9a22cdd8203f8d1d9f0878 (diff) | |
download | trackermap-server-985c3a324a566f803ec83658680974a7f75b0b7d.tar.gz trackermap-server-985c3a324a566f803ec83658680974a7f75b0b7d.tar.bz2 trackermap-server-985c3a324a566f803ec83658680974a7f75b0b7d.zip |
Extend Plugin protocol support
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/PluginProtocolDecoderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/PluginProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/PluginProtocolDecoderTest.java index d5c5a3b78..0fe3a3a01 100644 --- a/src/test/java/org/traccar/protocol/PluginProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/PluginProtocolDecoderTest.java @@ -2,6 +2,7 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; +import org.traccar.model.Position; public class PluginProtocolDecoderTest extends ProtocolTest { @@ -10,6 +11,10 @@ public class PluginProtocolDecoderTest extends ProtocolTest { PluginProtocolDecoder decoder = new PluginProtocolDecoder(null); + verifyAttribute(decoder, text( + "$$STATUS,60925,20190829123115,28.254151,-25.860605,0.0,0,0,-1,2,0.000,13699,0.00,0,0,28.4,23.4,0,0,0,0,0,0,0,0,0"), + Position.PREFIX_TEMP + 1, 28.4); + verifyPosition(decoder, text( "$$STATUS,60550,20191014084650,28.254258,-25.860355,0.0,236,0,-1,2,7472.967,13697,0.00,0,0,0.0,0.0,0,0,0,0,0,0,0,0,0")); |