aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/GalileoProtocolDecoderTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/GalileoProtocolDecoderTest.java b/test/org/traccar/protocol/GalileoProtocolDecoderTest.java
index d1706e5be..facaf1109 100644
--- a/test/org/traccar/protocol/GalileoProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GalileoProtocolDecoderTest.java
@@ -1,7 +1,8 @@
package org.traccar.protocol;
+import java.nio.ByteOrder;
import org.jboss.netty.buffer.ChannelBuffers;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
import org.junit.Test;
public class GalileoProtocolDecoderTest {
@@ -12,8 +13,8 @@ public class GalileoProtocolDecoderTest {
GalileoProtocolDecoder decoder = new GalileoProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
- /*byte[] buf1 = {0x00};
- assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf1)));*/
+ byte[] buf1 = {0x01,0x13,(byte)0x80,0x03,0x38,0x36,0x38,0x32,0x30,0x34,0x30,0x30,0x31,0x35,0x34,0x39,0x30,0x38,0x37,0x04,0x32,0x00,(byte)0x85,(byte)0x90};
+ assertNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ByteOrder.LITTLE_ENDIAN, buf1)));
}