aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 11:10:21 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 11:10:21 +1200
commit3591ef137ae12e5401fc148a637799949ec5c2a7 (patch)
tree86a12bf995c5edafb18a53e0fda43eb4e79ad1a9 /test/org
parent62be0e87ba78683cac5dd1ea07325c4beb9352b8 (diff)
downloadtrackermap-server-3591ef137ae12e5401fc148a637799949ec5c2a7.tar.gz
trackermap-server-3591ef137ae12e5401fc148a637799949ec5c2a7.tar.bz2
trackermap-server-3591ef137ae12e5401fc148a637799949ec5c2a7.zip
Fix Box regex pattern
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/BoxProtocolDecoderTest.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/BoxProtocolDecoderTest.java b/test/org/traccar/protocol/BoxProtocolDecoderTest.java
index 8355f5068..e83b2090a 100644
--- a/test/org/traccar/protocol/BoxProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/BoxProtocolDecoderTest.java
@@ -30,6 +30,36 @@ public class BoxProtocolDecoderTest extends ProtocolDecoderTest {
assertNull(decoder.decode(null, null,
"E,1"));
+ verify(decoder.decode(null, null,
+ "L,150728150130,G,24.68312,46.67526,0,140,0,3,20;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728155815,G,24.68311,46.67528,0,140,0,6,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728155833,G,24.68311,46.67528,11,140,0,52,23;A,0.79;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728155934,G,24.68396,46.67489,0,282,0.12,1,21;A,1.27;D,1.23;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728160033,G,24.68414,46.67485,0,282,0.12,1,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728160133,G,24.68388,46.675,0,282,0.12,1,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728160233,G,24.68377,46.67501,0,282,0.12,1,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728160333,G,24.684,46.67488,0,282,0.12,1,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728155855,G,24.68413,46.67482,0,282,0.14,53,21;A,0;D,0;I,0"));
+
+ verify(decoder.decode(null, null,
+ "L,150728160400,G,24.68413,46.67482,0,282,0.14,7,20;A,0;D,0;I,0;END,25,326,150728155814"));
+
}
}