From ffc1755cca2476dc9a4bb430c968207657997222 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 4 Jun 2014 19:42:56 +1200 Subject: Support alternative time format --- test/org/traccar/protocol/OsmAndProtocolDecoderTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java b/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java index 72a19a55e..7aed1b5ed 100644 --- a/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java +++ b/test/org/traccar/protocol/OsmAndProtocolDecoderTest.java @@ -15,6 +15,9 @@ public class OsmAndProtocolDecoderTest { OsmAndProtocolDecoder decoder = new OsmAndProtocolDecoder(null); decoder.setDataManager(new TestDataManager()); + verify(decoder.decode(null, null, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, + "/?lat=49.60688&lon=6.15788×tamp=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, "/?id=123456×tamp=1377177267&lat=60.0&lon=30.0&speed=0.0&bearing=0.0&altitude=0&hdop=0.0"))); -- cgit v1.2.3