aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-28 12:09:43 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-28 12:09:43 +1300
commit183273d381c132ff657416b6530a193dac157b0d (patch)
tree53b75c2902e3e00a0bc532221d2cab319aa26aab /test/org/traccar/protocol
parentf872b2072cfd35c51a94efc5b93b91e46129d48e (diff)
downloadtraccar-server-183273d381c132ff657416b6530a193dac157b0d.tar.gz
traccar-server-183273d381c132ff657416b6530a193dac157b0d.tar.bz2
traccar-server-183273d381c132ff657416b6530a193dac157b0d.zip
Begin BCE implementation
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/BceProtocolDecoderTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/BceProtocolDecoderTest.java b/test/org/traccar/protocol/BceProtocolDecoderTest.java
new file mode 100644
index 000000000..93fc080a4
--- /dev/null
+++ b/test/org/traccar/protocol/BceProtocolDecoderTest.java
@@ -0,0 +1,22 @@
+package org.traccar.protocol;
+
+import org.jboss.netty.buffer.ChannelBuffers;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+import org.traccar.helper.ChannelBufferTools;
+import static org.traccar.helper.DecoderVerifier.verify;
+import org.traccar.helper.TestDataManager;
+
+public class BceProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ BceProtocolDecoder decoder = new BceProtocolDecoder(new TestDataManager(), null, null);
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "be76619c834601004200a0003fd769c568ffc3db0079161d420683a9414918b1150000000000d102660167040000000000009f06357f0000a401042ea415e10232000000000000000000000051"))));
+
+ }
+
+}