From e0c1c52e54ba7bd6f08b0658fe03e84b8034347b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 18 Aug 2013 21:47:03 +1200 Subject: Add Noran/UniGuard support (fix #296) --- .../traccar/protocol/NoranProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/org/traccar/protocol/NoranProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/NoranProtocolDecoderTest.java b/test/org/traccar/protocol/NoranProtocolDecoderTest.java new file mode 100644 index 000000000..74c6c9817 --- /dev/null +++ b/test/org/traccar/protocol/NoranProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.jboss.netty.buffer.ChannelBuffers; +import static org.junit.Assert.assertNotNull; +import org.junit.Test; +import org.traccar.helper.ChannelBufferTools; + +public class NoranProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + NoranProtocolDecoder decoder = new NoranProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + //int[] buf1 = {0x00}; + //assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertArray(buf1)))); + + } + +} -- cgit v1.2.3