diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-14 08:18:44 +0300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-14 08:18:44 +0300 |
commit | f421a3f7205966cc4359bc0e01ae5afbceb006fb (patch) | |
tree | 1f46531bd0ec6e5c922b8c147b2435c78cc951f5 /test/org/traccar/protocol/HuabaoProtocolDecoderTest.java | |
parent | 9d26d56e297f7bdd147cb702a75d78584d7db6ec (diff) | |
download | trackermap-server-f421a3f7205966cc4359bc0e01ae5afbceb006fb.tar.gz trackermap-server-f421a3f7205966cc4359bc0e01ae5afbceb006fb.tar.bz2 trackermap-server-f421a3f7205966cc4359bc0e01ae5afbceb006fb.zip |
Add Huabao test cases
Diffstat (limited to 'test/org/traccar/protocol/HuabaoProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/HuabaoProtocolDecoderTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java index 95e183460..2618c8c9d 100644 --- a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java +++ b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java @@ -10,6 +10,18 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest { HuabaoProtocolDecoder decoder = new HuabaoProtocolDecoder(new HuabaoProtocol()); + verifyNull(decoder, binary( + "7E01000021013345678906000F002C012F373031313142534A2D4D3742203030303030303001D4C1423838383838B47E")); + + verifyPosition(decoder, binary( + "7E0200002A013833501744001900000000000000C201597FA806CC01580080000000081508180721210104000002F502020000030200009F7E")); + + verifyPositions(decoder, binary( + "7E0704014301356777777707F5000801002600000000000000030159741206CBFD5001720000000116052709062401040000001D03020000002600000000000000030159746606CBFD50016B0000000116052709065301040000001D0302000000260000000000000003015975E406CBFE58013F0000000116052709072701040000001D0302000000260000000000000003015976DE06CBFF10012E0000000116052709075601040000001D0302000000260000000000000003015976BC06CBFED0012D0000000116052709083001040000001D0302000000260000000000000003015976FE06CBFEC001080000000116052709090001040000001D0302000000260000000000000003015976FE06CBFE7800FC0000000116052709093301040000001D0302000000260000000000000003015977A606CBFF3001080000000116052709100201040000001D030200001F7E")); + + verifyAttributes(decoder, binary( + "7E0200002F01357888888800B60000000000000003015972B406CBF6B802230000000116061317571301040000000003020000EB0700050001016708B37E")); + verifyPositions(decoder, binary( "7E070400F30303000002450064000401003A000000000000000301618AC606C31F20000000000029180514202847010400000000EB16000C00B28986061708003732585700060089FFFFFFFE003A000000000000000301618AE806C31EB800000000009F180514202917010400000000EB16000C00B28986061708003732585700060089FFFFFFFE003A000000000000000301618AE806C31EB800000000009F180514202947010400000000EB16000C00B28986061708003732585700060089FFFFFFFE003A000001000000080301618AE806C31EB800000000009F180514203006010400000000EB16000C00B28986061708003732585700060089FFFFFFFED77E")); |