aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-28 10:56:31 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-28 10:56:31 +1300
commitba1ce052ba5ed33a1110448f5857e8e7e2e101d0 (patch)
tree0a1c5dcb70736a103660f71c3e48b2b0560a9e0c /test/org/traccar/protocol/AtrackProtocolDecoderTest.java
parente59c4b0e015dd063aaf431e9f0296b9483024ab8 (diff)
downloadtrackermap-server-ba1ce052ba5ed33a1110448f5857e8e7e2e101d0.tar.gz
trackermap-server-ba1ce052ba5ed33a1110448f5857e8e7e2e101d0.tar.bz2
trackermap-server-ba1ce052ba5ed33a1110448f5857e8e7e2e101d0.zip
Add Atrack unit test case
Diffstat (limited to 'test/org/traccar/protocol/AtrackProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/AtrackProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
index 503998ca8..882501e9e 100644
--- a/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/AtrackProtocolDecoderTest.java
@@ -15,6 +15,10 @@ public class AtrackProtocolDecoderTest extends ProtocolDecoderTest {
verifyNothing(decoder, binary(
"fe0200014104d8f196820001"));
+ // invalid GPS data
+ //verifyPositions(decoder, binary(
+ // "40503835003300070001441c3d8ed1c400000000000000c9000000c900000000000000000000020000000003de0100000000000007d007d000"));
+
verifyPositions(decoder, binary(
"4050993f005c000200014104d8f19682525666c252568c3c52568c63ffc8338402698885000002000009cf03de0100000000000007d007d000525666c252568c5a52568c63ffc8338402698885000002000009cf03de0100000000000007d007d000"));