From 572dfddfb64f99dbfde60fda628bba327c245465 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 19 Mar 2013 22:15:35 +1300 Subject: Add Galileo protocol --- .../traccar/protocol/GalileoProtocolDecoderTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/org/traccar/protocol/GalileoProtocolDecoderTest.java (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/GalileoProtocolDecoderTest.java b/test/org/traccar/protocol/GalileoProtocolDecoderTest.java new file mode 100644 index 000000000..d1706e5be --- /dev/null +++ b/test/org/traccar/protocol/GalileoProtocolDecoderTest.java @@ -0,0 +1,20 @@ +package org.traccar.protocol; + +import org.jboss.netty.buffer.ChannelBuffers; +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class GalileoProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + GalileoProtocolDecoder decoder = new GalileoProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + /*byte[] buf1 = {0x00}; + assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf1)));*/ + + } + +} -- cgit v1.2.3