aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-13 10:53:00 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-13 10:53:00 +1200
commit64cfb89dcd87280559ec6d5867c8f309b9df4181 (patch)
treeb071f4edd910d59268ac0be685d74ba6162090ef /test
parent9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6 (diff)
downloadtraccar-server-64cfb89dcd87280559ec6d5867c8f309b9df4181.tar.gz
traccar-server-64cfb89dcd87280559ec6d5867c8f309b9df4181.tar.bz2
traccar-server-64cfb89dcd87280559ec6d5867c8f309b9df4181.zip
Fix OsmAnd timestamp issue
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/OsmAndProtocolDecoderTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java b/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java
index 62120d605..27fca29e7 100644
--- a/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java
@@ -1,11 +1,10 @@
package org.traccar.protocol;
-import org.traccar.helper.TestIdentityManager;
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;
+import static org.traccar.helper.DecoderVerifier.verify;
public class OsmAndProtocolDecoderTest extends ProtocolDecoderTest {
@@ -15,6 +14,9 @@ public class OsmAndProtocolDecoderTest extends ProtocolDecoderTest {
OsmAndProtocolDecoder decoder = new OsmAndProtocolDecoder(new OsmAndProtocol());
verify(decoder.decode(null, null, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,
+ "/?id=902064&lat=42.06288&lon=-88.23412&timestamp=1442068686579&hdop=6.0&altitude=224.0&speed=0.0")));
+
+ verify(decoder.decode(null, null, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,
"/?lat=49.60688&lon=6.15788&timestamp=2014-06-04+09%3A10%3A11&altitude=384.7&speed=0.0&id=353861053849681")));
verify(decoder.decode(null, null, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,