aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-08 05:44:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-08 05:44:29 +1200
commit179373c6b3d619922a5daf98220ffe831f56fba2 (patch)
tree8107b91c0c3c316295ae6041c78bcdff26c5a329 /test/org/traccar
parent3aebd92cc3781b417ded6260d1300434b1418e7e (diff)
downloadtrackermap-server-179373c6b3d619922a5daf98220ffe831f56fba2.tar.gz
trackermap-server-179373c6b3d619922a5daf98220ffe831f56fba2.tar.bz2
trackermap-server-179373c6b3d619922a5daf98220ffe831f56fba2.zip
Improve TRV decoder logic
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/TrvProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TrvProtocolDecoderTest.java b/test/org/traccar/protocol/TrvProtocolDecoderTest.java
index 319455b9f..a4c0d3343 100644
--- a/test/org/traccar/protocol/TrvProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TrvProtocolDecoderTest.java
@@ -11,6 +11,15 @@ public class TrvProtocolDecoderTest extends ProtocolTest {
TrvProtocolDecoder decoder = new TrvProtocolDecoder(new TrvProtocol());
verifyNull(decoder, text(
+ "TRVAP00352121088015548"));
+
+ verifyPosition(decoder, text(
+ "TRVAP01170905A5227.1382N00541.4256E001.7095844000.0008100610020100,204,8,3230,13007"));
+
+ verifyAttributes(decoder, text(
+ "TRVCP01,07800010010000602001206001120124"));
+
+ verifyNull(decoder, text(
"IWAP00353456789012345"));
verifyPosition(decoder, text(