diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-18 21:47:03 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-18 21:47:03 +1200 |
commit | e0c1c52e54ba7bd6f08b0658fe03e84b8034347b (patch) | |
tree | ce012be873ce84fe2ba7caa2525cccec13424e60 /test/org/traccar/protocol/NoranProtocolDecoderTest.java | |
parent | f8665780919e95e8828fb7c771904d1039398e61 (diff) | |
download | trackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.gz trackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.bz2 trackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.zip |
Add Noran/UniGuard support (fix #296)
Diffstat (limited to 'test/org/traccar/protocol/NoranProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/NoranProtocolDecoderTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
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)))); + + } + +} |