aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-01-30 22:16:59 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-01-30 22:16:59 -0800
commit3bf277a340c57c485af7f3c0ab46b27e070b0998 (patch)
tree2b55628cc7ff47dbbe8143def720e428f9d401ec /src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java
parent2d5a5e600e576cd4e31046be104cc98f799ad091 (diff)
downloadtrackermap-server-3bf277a340c57c485af7f3c0ab46b27e070b0998.tar.gz
trackermap-server-3bf277a340c57c485af7f3c0ab46b27e070b0998.tar.bz2
trackermap-server-3bf277a340c57c485af7f3c0ab46b27e070b0998.zip
Add new RST test case
Diffstat (limited to 'src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java
index 66286776a..fb6dca3e6 100644
--- a/src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/RstProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class RstProtocolDecoderTest extends ProtocolTest {
RstProtocolDecoder decoder = new RstProtocolDecoder(null);
+ verifyPosition(decoder, text(
+ "RST;L;RST-MINIv2;V7.02;008068078;61;1;27-01-2020 21:36:33;27-01-2020 21:36:33;-16.696159;-49.284275;0;67;786;1;15;0;00;B0;00;19;06;12.42;4.16;79;20;FE;0000;01;E0;00800020;0;467;FIM;"));
+
verifyAttribute(decoder, text(
"RST;A;RST-MINIv2;V7.00;008033985;1;7;30-08-2019 11:31:38;30-08-2019 11:31:15;-23.645868;-46.637741;0;226;828;0;10;0;00;20;00;1A;02;0.02;3.40;0;0;FE;0000;04;80;11;0;FIM;"),
Position.KEY_BATTERY, 3.40);