aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-10-20 15:05:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-10-20 15:05:41 +1300
commit8876e964cf26a090d11fd855642c95bc02a17c7f (patch)
tree2bcedba458db162dcfefa07aac0c77bd8f4504ad /test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
parent6984cc9c14cf8dd44b946dd1624601ce2c0edf30 (diff)
downloadtrackermap-server-8876e964cf26a090d11fd855642c95bc02a17c7f.tar.gz
trackermap-server-8876e964cf26a090d11fd855642c95bc02a17c7f.tar.bz2
trackermap-server-8876e964cf26a090d11fd855642c95bc02a17c7f.zip
Support PT502 binary messages (fix #825)
Diffstat (limited to 'test/org/traccar/protocol/Pt502ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Pt502ProtocolDecoderTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
index bf7a3962c..d286dde77 100644
--- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
@@ -31,8 +31,10 @@ public class Pt502ProtocolDecoderTest {
"$POS,353451000164,082405.000,A,1254.8501,N,10051.6752,E,0.00,237.99,160513,,,A/0000,0/0/55000//a71/"));
verify(decoder.decode(null, null,
- "\u00bf\u00fb\u0059\u006c\u0000$POS,012896008586486,154215.000,A,0118.0143,S,03646.9144,E,0.00,83.29,180714,,,A/0000,0/0/29200//644/"));
-
+ "$POS,012896008586486,154215.000,A,0118.0143,S,03646.9144,E,0.00,83.29,180714,,,A/0000,0/0/29200//644/"));
+
+ verify(decoder.decode(null, null,
+ "$POS,1151000,205326.000,A,0901.3037,N,07928.2751,W,48.79,30.55,170814,,,A/00010,10000/0,0,0,0/15986500//fb8/"));
}