aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-31 12:35:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-31 12:35:38 +1300
commitcedac58c6d7c04c9bc6e39644592095d5057f74f (patch)
treea072df8b817ee0dad85c62f5e4ba672b1e23751b /test/org/traccar
parentbd0e91ea2370eaf504d3609aa7acf1739c342540 (diff)
downloadtraccar-server-cedac58c6d7c04c9bc6e39644592095d5057f74f.tar.gz
traccar-server-cedac58c6d7c04c9bc6e39644592095d5057f74f.tar.bz2
traccar-server-cedac58c6d7c04c9bc6e39644592095d5057f74f.zip
Support Cityeasy LBS messages
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/CityeasyProtocolDecoderTest.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java
index 33ee51c4f..7f39e5dd6 100644
--- a/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java
@@ -13,6 +13,15 @@ public class CityeasyProtocolDecoderTest extends ProtocolDecoderTest {
CityeasyProtocolDecoder decoder = new CityeasyProtocolDecoder(new CityeasyProtocol());
+ verifyAttributes(decoder, binary(
+ "545400853575570249020100033b3430342c34352c31303638312c31313632312c33352c31303638312c31313632322c32332c31303638312c32383938332c32332c31303638312c31313632332c32312c31303638312c32333338312c31372c31303638312c32323538332c31372c31303638312c32363434312c31330000000d352e0d0a"));
+
+ verifyNothing(decoder, binary(
+ "54540019357557024902010002520704100000000bbe700d0a"));
+
+ verifyNothing(decoder, binary(
+ "5454001735755702490201434a01000000000c24280d0a"));
+
verifyNothing(decoder, binary(
"545400153520000000000100010000000111000D0A"));
@@ -20,7 +29,8 @@ public class CityeasyProtocolDecoderTest extends ProtocolDecoderTest {
"54540019357557024902000002520704300000000376390d0a"));
verifyPosition(decoder, binary(
- "5454006135200000000001000332303134313131303039353430392C412C342C4E2C32322E3533373232382C452C3131342E3032323737342C302E312C312E392C35302E363B3436302C302C31303137332C343635322C34310000000B63130D0A"));
+ "5454006135200000000001000332303134313131303039353430392C412C342C4E2C32322E3533373232382C452C3131342E3032323737342C302E312C312E392C35302E363B3436302C302C31303137332C343635322C34310000000B63130D0A"),
+ position("2014-11-10 09:54:09.000", true, 22.53723, 114.02277));
verifyPosition(decoder, binary(
"5454006135200000000001000432303134313131303039353330362C412C352C4E2C32322E3533373233352C452C3131342E3032323838312C302E322C312E362C35342E313B3436302C302C31303137332C343635322C343100000045EC620D0A"));