assertPositionData( captor.getAllValues().get( 0 ) );
assertPositionData( captor.getAllValues().get( 1 ) );
}
private JsonObject createPositionData() {
JsonObject properties = new JsonObject();
properties.add( "timestamp", "2012-03-12T10:40:13+0100" );
properties.add( "latitude", 101.1 );
properties.add( "longitude", 43.1 );
properties.add( "altitude", 3 );
properties.add( "accuracy", 5.1 );
properties.add( "altitudeAccuracy", 1.1 );
properties.add( "heading", 21.1 );
properties.add( "speed", 216.1 );
return properties;
}