diff options
author | ninioe <ninioe@gmail.com> | 2016-08-04 09:51:40 +0300 |
---|---|---|
committer | ninioe <ninioe@gmail.com> | 2016-08-04 09:51:40 +0300 |
commit | b2613805e5de4b7d3755b063ad76d737e713616f (patch) | |
tree | 726c0c6effdeced9903b6b26ef0480047d2d179c /test | |
parent | 6f32f4a9460ff3be2823d7a133659d29bf057237 (diff) | |
parent | 41668cae9763a523c775a8a998620fe286176c9e (diff) | |
download | trackermap-server-b2613805e5de4b7d3755b063ad76d737e713616f.tar.gz trackermap-server-b2613805e5de4b7d3755b063ad76d737e713616f.tar.bz2 trackermap-server-b2613805e5de4b7d3755b063ad76d737e713616f.zip |
Merge remote-tracking branch 'refs/remotes/tananaev/master'
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/GatorProtocolDecoderTest.java | 3 | ||||
-rw-r--r-- | test/org/traccar/protocol/TzoneProtocolDecoderTest.java | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GatorProtocolDecoderTest.java b/test/org/traccar/protocol/GatorProtocolDecoderTest.java index cf65d0dc6..8541f14b2 100644 --- a/test/org/traccar/protocol/GatorProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GatorProtocolDecoderTest.java @@ -18,6 +18,9 @@ public class GatorProtocolDecoderTest extends ProtocolTest { GatorProtocolDecoder decoder = new GatorProtocolDecoder(new GatorProtocol()); + verifyAttributes(decoder, binary( + "2424800026364101b31608041108380273453415301532000000008000010000122800000124000000c40d")); + verifyNothing(decoder, binary( "242421000658e3d851150d")); diff --git a/test/org/traccar/protocol/TzoneProtocolDecoderTest.java b/test/org/traccar/protocol/TzoneProtocolDecoderTest.java index 8d60bdfe4..2ae776f36 100644 --- a/test/org/traccar/protocol/TzoneProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TzoneProtocolDecoderTest.java @@ -12,6 +12,12 @@ public class TzoneProtocolDecoderTest extends ProtocolTest { TzoneProtocolDecoder decoder = new TzoneProtocolDecoder(new TzoneProtocol()); verifyPosition(decoder, binary( + "545a00582424010b022000000860041028904798100803030c2700160a007da96203356669100803030c2700000000000e000004002813730010aa4000000617017100000000000080000000000000000000000000000000007701fe0d0a")); + + verifyPosition(decoder, binary( + "545a00582424010b022000000860041028904798100803030d1a001609007da9620335666a100803030d1900000000000e000004002813730010aa400000063701720000000000008000000000000000000000000000000000787f0c0d0a")); + + verifyPosition(decoder, binary( "545a00582424010b021e000008637710239476270f080b0a3228001600000000000000000000000000000000000000000000000401a00822001088c00020183701a6053800000000800000000000000000000000000000000077c9860d0a"), position("1999-11-30 00:00:00.000", false, 0.0, 0.0)); |