aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-13 08:30:09 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-13 08:30:22 +1300
commit8abf4f011eef72e06dd24720e00ce27350b0b047 (patch)
tree4e9556c5dcade8d3dfbf0be7df0f310b7fe3f7d8 /test/org/traccar
parent3ea901e4198c6dbbdde74c6e49805714694c8271 (diff)
downloadtraccar-server-8abf4f011eef72e06dd24720e00ce27350b0b047.tar.gz
traccar-server-8abf4f011eef72e06dd24720e00ce27350b0b047.tar.bz2
traccar-server-8abf4f011eef72e06dd24720e00ce27350b0b047.zip
Fix issue with XRB 28 decoder
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/Xrb28ProtocolDecoderTest.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/Xrb28ProtocolDecoderTest.java b/test/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
index 441d7b811..eaa28906e 100644
--- a/test/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
@@ -11,13 +11,19 @@ public class Xrb28ProtocolDecoderTest extends ProtocolTest {
Xrb28ProtocolDecoder decoder = new Xrb28ProtocolDecoder(null);
verifyNull(decoder, text(
- "\u00ff\u00ff*HBCR,OM,123456789123456,Q0,412,80#"));
+ "*SCOR,OM,863158022988725,H0,0,412,28,80,0#"));
verifyNull(decoder, text(
- "\u00ff\u00ff*HBCR,OM,123456789123456,R0,0,55,1234,1497689816#"));
+ "*HBCR,OM,123456789123456,Q0,412,80#"));
+
+ verifyNull(decoder, text(
+ "*HBCR,OM,123456789123456,R0,0,55,1234,1497689816#"));
+
+ verifyPosition(decoder, text(
+ "*HBCR,OM,123456789123456,D0,0,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
verifyPosition(decoder, text(
- "\u00ff\u00ff*HBCR,OM,123456789123456,D0,0,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
+ "*SCOR,OM,863158022988725,D0,0,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
}