From 37690d14ec2c59a76098408d7586888d147661e6 Mon Sep 17 00:00:00 2001 From: VysotskiVadim Date: Fri, 20 Oct 2023 09:50:38 +0200 Subject: [PATCH] fixed wrapper test --- .../mapbox/navigation/route/internal/RouterWrapperTests.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libnavigation-router/src/test/java/com/mapbox/navigation/route/internal/RouterWrapperTests.kt b/libnavigation-router/src/test/java/com/mapbox/navigation/route/internal/RouterWrapperTests.kt index e0ef7e04a95..fb65aae1251 100644 --- a/libnavigation-router/src/test/java/com/mapbox/navigation/route/internal/RouterWrapperTests.kt +++ b/libnavigation-router/src/test/java/com/mapbox/navigation/route/internal/RouterWrapperTests.kt @@ -1,3 +1,5 @@ +@file:OptIn(ExperimentalPreviewMapboxNavigationAPI::class) + package com.mapbox.navigation.route.internal import com.mapbox.api.directions.v5.models.DirectionsResponse @@ -7,12 +9,15 @@ import com.mapbox.bindgen.DataRef import com.mapbox.bindgen.Expected import com.mapbox.bindgen.ExpectedFactory import com.mapbox.geojson.Point +import com.mapbox.navigation.base.ExperimentalPreviewMapboxNavigationAPI import com.mapbox.navigation.base.extensions.applyDefaultNavigationOptions import com.mapbox.navigation.base.extensions.coordinates import com.mapbox.navigation.base.internal.RouteRefreshRequestData import com.mapbox.navigation.base.internal.SDKRouteParser import com.mapbox.navigation.base.internal.route.createNavigationRoutes import com.mapbox.navigation.base.internal.route.isExpired +import com.mapbox.navigation.base.internal.utils.RoutesParsingQueue +import com.mapbox.navigation.base.options.LongRoutesOptimisationOptions import com.mapbox.navigation.base.route.NavigationRoute import com.mapbox.navigation.base.route.NavigationRouterCallback import com.mapbox.navigation.base.route.NavigationRouterRefreshCallback @@ -165,6 +170,7 @@ class RouterWrapperTests { accessToken, router, ThreadController(), + RoutesParsingQueue(LongRoutesOptimisationOptions.NoOptimisations) ) }