Package com.mapbox.navigation.testing.router

Types

Link copied to clipboard
interface CustomRouterRule : TestRule

The rule setups a local web server which can serve requests from Navigation SDK. Set baseUrl as RouteOptions.baseUrl to make Nav SDK using local web server. Use createNavigationRouterRule to create an instance of the rule.

Link copied to clipboard
interface MapboxNavigationTestRouter

Implement this interface to handle route requests from the Navigation SDK.

Link copied to clipboard
interface MapboxNavigationTestRouteRefresher

Implement this interface to handle route refresh requests from the Nav SDK.

Link copied to clipboard
class RefreshOptions

Options which indicates which route is being refreshed.

Link copied to clipboard
interface RouterCallback

A callback to call when a route or an error is ready to be sent to the Nav SDK.

Link copied to clipboard
interface RouteRefreshCallback

A callback to call when a route is refreshed or an error is ready to be sent to the Nav SDK.

Link copied to clipboard
class TestRefresherFailure

Represents an error which could happen during route refresh. Use factory methods to create a specific failures.

Link copied to clipboard
class TestRouterFailure

Represents an error which could happen during route calculation. Use factory methods to create a specific failures.

Functions

Link copied to clipboard
fun createNavigationRouterRule(): CustomRouterRule

Creates an instance of CustomRouterRule. Use it as a JUnit rule in your instrumentation tests.