From 183273d381c132ff657416b6530a193dac157b0d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 28 Feb 2015 12:09:43 +1300 Subject: Begin BCE implementation --- .../traccar/protocol/BceProtocolDecoderTest.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/org/traccar/protocol/BceProtocolDecoderTest.java (limited to 'test/org/traccar/protocol') 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")))); + + } + +} -- cgit v1.2.3