aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-24 15:24:55 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-24 15:24:55 +1200
commit9de2c5617950bb8df74a3246122d31dcdd95da67 (patch)
tree3784be738b59595c82c06c6cde26497e8577bb0b /test/org/traccar/protocol
parent2c7ee9ab2787b347d328cf6ae045f775266069cc (diff)
downloadtraccar-server-9de2c5617950bb8df74a3246122d31dcdd95da67.tar.gz
traccar-server-9de2c5617950bb8df74a3246122d31dcdd95da67.tar.bz2
traccar-server-9de2c5617950bb8df74a3246122d31dcdd95da67.zip
Begin Cityeasy protocol implementation
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/CityeasyProtocolDecoderTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java
new file mode 100644
index 000000000..c06f39948
--- /dev/null
+++ b/test/org/traccar/protocol/CityeasyProtocolDecoderTest.java
@@ -0,0 +1,22 @@
+package org.traccar.protocol;
+
+import org.jboss.netty.buffer.ChannelBuffers;
+import org.junit.Test;
+import org.traccar.helper.ChannelBufferTools;
+
+import static org.junit.Assert.assertNull;
+import static org.traccar.helper.DecoderVerifier.verify;
+
+public class CityeasyProtocolDecoderTest extends ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ CityeasyProtocolDecoder decoder = new CityeasyProtocolDecoder(new CityeasyProtocol());
+
+ verify(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(ChannelBufferTools.convertHexString(
+ "5454006135200000000001000332303134313131303039353430392C412C342C4E2C32322E3533373232382C452C3131342E3032323737342C302E312C312E392C35302E363B3436302C302C31303137332C343635322C34310000000B63130D0A"))));
+
+ }
+
+}