aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoramilasilva88 <amilasilva88@gmail.com>2015-08-15 09:05:31 +0800
committeramilasilva88 <amilasilva88@gmail.com>2015-08-15 09:05:31 +0800
commitf2c6f5aa0248c5b40e5aebd57e905fc2769937e9 (patch)
tree47b456e80c807b12ca27b93d940cecec4c678269 /test
parenta70f478740514e6e60ffbe49906a9c6150b2ec99 (diff)
parenta4a40243616cb2d29ca70f61dbca8502d343357a (diff)
downloadtrackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.tar.gz
trackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.tar.bz2
trackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.zip
Merge https://github.com/tananaev/traccar
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/TzoneProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/TzoneProtocolDecoderTest.java b/test/org/traccar/protocol/TzoneProtocolDecoderTest.java
index 0d2c36bc7..3b24b1d13 100644
--- a/test/org/traccar/protocol/TzoneProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TzoneProtocolDecoderTest.java
@@ -1,6 +1,8 @@
package org.traccar.protocol;
import org.jboss.netty.buffer.ChannelBuffers;
+
+import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import org.traccar.helper.ChannelBufferTools;
@@ -13,6 +15,9 @@ public class TzoneProtocolDecoderTest extends ProtocolDecoderTest {
TzoneProtocolDecoder decoder = new TzoneProtocolDecoder(new TzoneProtocol());
+ assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "545a00582424010b021e000008637710239476270f080b0a3228001600000000000000000000000000000000000000000000000401a00822001088c00020183701a6053800000000800000000000000000000000000000000077c9860d0a"))));
+
verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
"545A00912424010B021E000008661040203754350F061807083800160400CE5ADC041447620F0618070838000A0000060C7C0004253378370010AAC000000C37018504E500000000800000000000000000390B0A0014061113000000051200140610600014061220001000133800140610070010001473001000151100101500640010000920001000148400000000000000F2EF570D0A"))));