aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TzoneProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-14 14:39:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-14 14:39:03 +1200
commitd248d2470434b9b6921fb3cc8afebf40123f8dd4 (patch)
tree8f4f79798e37b203e71f6a792801f99b813813cb /test/org/traccar/protocol/TzoneProtocolDecoderTest.java
parenta5b29b0e5df4ba84c8eaa8944258b9c9e12472db (diff)
downloadtrackermap-server-d248d2470434b9b6921fb3cc8afebf40123f8dd4.tar.gz
trackermap-server-d248d2470434b9b6921fb3cc8afebf40123f8dd4.tar.bz2
trackermap-server-d248d2470434b9b6921fb3cc8afebf40123f8dd4.zip
Add more tzone unit tests
Diffstat (limited to 'test/org/traccar/protocol/TzoneProtocolDecoderTest.java')
-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"))));