NavAppClientSdkMock

class NavAppClientSdkMock(val navAppClientMock: NavAppClient)

Configures a NavAppClient mock and provides an API to simulate events such as navigated trip change or trip progress update. Use in combination with mockkClientSdk.

Constructors

Link copied to clipboard
fun NavAppClientSdkMock(navAppClientMock: NavAppClient)

Properties

Link copied to clipboard
val guidanceManager: GuidanceManager
Link copied to clipboard
val mapDisplayManager: MapDisplayManager
Link copied to clipboard
val navAppClientMock: NavAppClient
Link copied to clipboard
val personalLocationManager: PersonalLocationsManager
Link copied to clipboard
val searchManager: SearchManager
Link copied to clipboard
val tripManager: TripManager

Functions

Link copied to clipboard
fun sendCurrentPositionProgress(currentPositionInfo: CurrentPositionInfo)

Send CurrentPositionInfo to the listeners.

Link copied to clipboard
fun sendSingleNextInstruction(distance: Distance, instruction: InstructionInformation?)
Link copied to clipboard
fun sendTripProgressUpdate()

Send the prepared (see setTripProgress) trip progress update to the listeners.

Link copied to clipboard
fun setNavigatedTrip(trip: Trip?)
Link copied to clipboard
fun setPersonalLocationInfo(personalLocationInfo: PersonalLocationsInfo)

Send personalLocationInfo to the listeners.

Link copied to clipboard
fun setTripProgress(tripProgressInfo: TripProgressInfo)
Link copied to clipboard
fun setupSimpleTripPlan(mockTripSetup: Trip.() -> Unit)

Configures the TripManager mock to handle a simple workflow when a trip is planned, activated and then cancelled.

Link copied to clipboard
fun setupTripProgress(progressSetup: TripProgressInfo.() -> Unit)