diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-17 11:36:08 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-17 11:36:08 +1300 |
commit | 3471e62b0f3949621265c80dcaf2ba714aade697 (patch) | |
tree | 8a50821821640def358e6fe7ca4a401327058357 /test | |
parent | e4f936e9732f5ad2e99553425d8c5c9222e486f2 (diff) | |
download | traccar-server-3471e62b0f3949621265c80dcaf2ba714aade697.tar.gz traccar-server-3471e62b0f3949621265c80dcaf2ba714aade697.tar.bz2 traccar-server-3471e62b0f3949621265c80dcaf2ba714aade697.zip |
Finish Huabao protocol implementation
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/HuabaoProtocolDecoderTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java index 0968d6d9c..1e2290851 100644 --- a/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java +++ b/test/org/traccar/protocol/HuabaoProtocolDecoderTest.java @@ -11,8 +11,17 @@ public class HuabaoProtocolDecoderTest extends ProtocolDecoderTest { HuabaoProtocolDecoder decoder = new HuabaoProtocolDecoder(new HuabaoProtocol()); verifyNothing(decoder, binary( + "7E0100002D013511221122000500000000373031303748422D52303347424400000000000000000000003233363631303402CBD5424136383630387E")); + + verifyNothing(decoder, binary( "7e0100002d007089994489002800000000000000000048422d523033474244000000000000000000000031393036373531024142433030303030d17e")); + verifyNothing(decoder, binary( + "7E0102000E013511221122000661757468656E7469636174696F6E3F7E")); + + verifyPosition(decoder, binary( + "7E02000032013511221122000700000000000C000301578CC006CA3A5C00470000000014072317201501040000000030011631010BD07E")); + } } |