File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
libnavui-dropin/src/test/java/com/mapbox/navigation/dropin/navigationview
libnavui-voice/src/test/java/com/mapbox/navigation/ui/voice/api Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,9 @@ class MapboxNavigationViewApiTest {
358
358
val player: MapboxVoiceInstructionsPlayer = mockk()
359
359
every { audioGuidance.getCurrentVoiceInstructionsPlayer() } returns player
360
360
assertEquals(player, sut.getCurrentVoiceInstructionsPlayer())
361
+
362
+ every { audioGuidance.getCurrentVoiceInstructionsPlayer() } returns null
363
+ assertNull(sut.getCurrentVoiceInstructionsPlayer())
361
364
}
362
365
363
366
private fun navigationRoute (vararg waypoints : Point ): NavigationRoute {
Original file line number Diff line number Diff line change @@ -223,5 +223,8 @@ class MapboxAudioGuidanceTest {
223
223
val player: MapboxVoiceInstructionsPlayer = mockk()
224
224
every { mapboxAudioGuidanceServices.voiceInstructionsPlayer } returns player
225
225
assertEquals(player, carAppAudioGuidance.getCurrentVoiceInstructionsPlayer())
226
+
227
+ every { mapboxAudioGuidanceServices.voiceInstructionsPlayer } returns null
228
+ assertNull(carAppAudioGuidance.getCurrentVoiceInstructionsPlayer())
226
229
}
227
230
}
You can’t perform that action at this time.
0 commit comments