aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/NoranProtocolDecoderTest.java21
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))));
+
+ }
+
+}