aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-29 10:54:40 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-29 10:54:40 +1200
commita44f390edb30ca65d5dabcd98c5bbd6b66f7dd8c (patch)
tree4c15a374527d03fd3aab4705b66b1bd410726c87 /test
parent615a80021e52e27adcffaa1d3fa2fd15f4e589b7 (diff)
downloadtraccar-server-a44f390edb30ca65d5dabcd98c5bbd6b66f7dd8c.tar.gz
traccar-server-a44f390edb30ca65d5dabcd98c5bbd6b66f7dd8c.tar.bz2
traccar-server-a44f390edb30ca65d5dabcd98c5bbd6b66f7dd8c.zip
Add more GPS103 unit tests
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Gps103ProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
index eb71b3034..72b0be1b5 100644
--- a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class Gps103ProtocolDecoderTest extends ProtocolTest {
Gps103ProtocolDecoder decoder = new Gps103ProtocolDecoder(new Gps103Protocol());
verifyAttributes(decoder, text(
+ "imei:359710049090138,OBD,160629022949,51442,0.00,15.88,5632,122,40.39%,95,0.00%,2101,13.80,,,,;"));
+
+ verifyPosition(decoder, text(
+ "imei:359710049090138,tracker,160629022948,,F,182949.000,A,4043.8839,N,11328.8029,W,65.26,271.82,,1,0,31.37%,51442,;"));
+
+ verifyAttributes(decoder, text(
"imei:359710049042014,001,160615040011,,F,040011.000,A,2833.0957,N,07711.9465,E,0.01,215.33,,0,,,,;"));
verifyAttributes(decoder, text(