mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
implement poc
bug5293
This commit is contained in:
+9
-2
@@ -36,7 +36,14 @@ public class FlatSmartphoneUuidAndGPSFixMovingJsonDeserializerTest {
|
||||
" \"longitude\" : 8.03456,\n" +
|
||||
" \"speed\" : 5.1,\n" +
|
||||
" \"course\" : 14.2,\n" +
|
||||
" }\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"timestamp-iso\" : \"2004-06-14T23:34:30Z\",\n" +
|
||||
" \"latitude\" : -67.672456,\n" +
|
||||
" \"longitude\" : -2.03456,\n" +
|
||||
" \"speed\" : 19.3,\n" +
|
||||
" \"course\" : 359.99,\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
"}";
|
||||
JsonDeserializer<Pair<UUID, List<GPSFixMoving>>> deserializer =
|
||||
@@ -45,6 +52,6 @@ public class FlatSmartphoneUuidAndGPSFixMovingJsonDeserializerTest {
|
||||
Pair<UUID, List<GPSFixMoving>> result =
|
||||
deserializer.deserialize(Helpers.toJSONObjectSafe(JSONValue.parseWithException(json)));
|
||||
assertThat("uuid", result.getA(), equalTo(UUID.fromString("af855a56-9726-4a9c-a77e-da955bd289bf")));
|
||||
assertThat("number of fixes", result.getB().size(), equalTo(2));
|
||||
assertThat("number of fixes", result.getB().size(), equalTo(3));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user