diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-01-19 22:52:14 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-01-19 22:52:14 +1300 |
commit | 44c0dc492306bbd8c0f8cf8a50aa8cba70749602 (patch) | |
tree | fcb9546402c0e806d4b3c4d5c4cd337b8dd3e63f /test/org/traccar/protocol | |
parent | cf58cb80662af0a14f5e9bbb1faaa8915ae23244 (diff) | |
download | traccar-server-44c0dc492306bbd8c0f8cf8a50aa8cba70749602.tar.gz traccar-server-44c0dc492306bbd8c0f8cf8a50aa8cba70749602.tar.bz2 traccar-server-44c0dc492306bbd8c0f8cf8a50aa8cba70749602.zip |
Add Piligrim protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/PiligrimProtocolDecoderTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/PiligrimProtocolDecoderTest.java b/test/org/traccar/protocol/PiligrimProtocolDecoderTest.java new file mode 100644 index 000000000..507499543 --- /dev/null +++ b/test/org/traccar/protocol/PiligrimProtocolDecoderTest.java @@ -0,0 +1,23 @@ +package org.traccar.protocol; + +import org.traccar.helper.TestDataManager; +import org.jboss.netty.handler.codec.http.DefaultHttpRequest; +import org.jboss.netty.handler.codec.http.HttpMethod; +import org.jboss.netty.handler.codec.http.HttpVersion; +import static org.traccar.helper.DecoderVerifier.verify; +import org.junit.Test; + +public class PiligrimProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + PiligrimProtocolDecoder decoder = new PiligrimProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + /*verify(decoder.decode(null, null, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, + "/?id=123456×tamp=1377177267&lat=60.0&lon=30.0&speed=0.0&bearing=0.0&altitude=0&hdop=0.0")));*/ + + } + +} |