diff --git a/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt b/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt index fd965e8d..d58f082a 100644 --- a/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt +++ b/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt @@ -4,6 +4,7 @@ import org.junit.Test import org.junit.Assert.* import uniffi.ferrostar.GeographicCoordinates +import java.time.Instant import java.util.concurrent.CountDownLatch import java.util.concurrent.Executors import java.util.concurrent.TimeUnit @@ -20,7 +21,7 @@ class SimulatedLocationProviderTest { @Test fun `set location`() { val locationProvider = SimulatedLocationProvider() - val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0f, null) + val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0, null, Instant.now()) locationProvider.lastLocation = location @@ -31,7 +32,7 @@ class SimulatedLocationProviderTest { fun `test listener events`() { val latch = CountDownLatch(1) val locationProvider = SimulatedLocationProvider() - val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0f, null) + val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0, null, Instant.now()) val listener = object : LocationUpdateListener { override fun onLocationUpdated(location: Location) {