aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnkit Tater <ankit@isuraksha.in>2015-10-24 12:47:34 +0530
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-01 18:20:56 +1300
commit0858303eedc1cfdc22297c3e8c013f31e0df684e (patch)
tree1bcf78afe4e2912935a5fde9755d57df2048323a /test/org/traccar/protocol
parent1def68657a59e56d2b46a0dfab77a39beed36824 (diff)
downloadtrackermap-server-0858303eedc1cfdc22297c3e8c013f31e0df684e.tar.gz
trackermap-server-0858303eedc1cfdc22297c3e8c013f31e0df684e.tar.bz2
trackermap-server-0858303eedc1cfdc22297c3e8c013f31e0df684e.zip
Implementation of T880X topflytech Protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/T800XProtocolDecoderTest.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/T800XProtocolDecoderTest.java b/test/org/traccar/protocol/T800XProtocolDecoderTest.java
new file mode 100644
index 000000000..df796013f
--- /dev/null
+++ b/test/org/traccar/protocol/T800XProtocolDecoderTest.java
@@ -0,0 +1,32 @@
+package org.traccar.protocol;
+
+import junit.framework.TestCase;
+import org.jboss.netty.buffer.ChannelBuffers;
+import org.junit.Test;
+import org.traccar.helper.ChannelBufferTools;
+import org.traccar.helper.TestDataManager;
+
+/**
+ * Created by Ankit on 21-10-2015.
+ */
+public class T800XProtocolDecoderTest extends TestCase {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ T800XProtocolDecoder decoder = new T800XProtocolDecoder(new TestDataManager(), null, null);
+
+ assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "232301001500020357367031063979150208625010"))));
+
+ /* assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "6767030004001A0001"))));*/
+
+ /* assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "6767070088001050E2281400FFFFFFFF02334455660333445566043344556605AA00000007334455660A334455660B334455660C4E2000000DAA0000000E334455660F3344556610AAAA000011334455661C334455661F334455662133445566423344556646334455664D334455665C334455665E33445566880000000089000000008A000000008B00000000"))));
+*/
+ /* verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "676702001b03c5538086df0190c1790b3482df0f0157020800013beb00342401"))));
+*/
+ }
+} \ No newline at end of file