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 {
358358 val player: MapboxVoiceInstructionsPlayer = mockk()
359359 every { audioGuidance.getCurrentVoiceInstructionsPlayer() } returns player
360360 assertEquals(player, sut.getCurrentVoiceInstructionsPlayer())
361+
362+ every { audioGuidance.getCurrentVoiceInstructionsPlayer() } returns null
363+ assertNull(sut.getCurrentVoiceInstructionsPlayer())
361364 }
362365
363366 private fun navigationRoute (vararg waypoints : Point ): NavigationRoute {
Original file line number Diff line number Diff line change @@ -223,5 +223,8 @@ class MapboxAudioGuidanceTest {
223223 val player: MapboxVoiceInstructionsPlayer = mockk()
224224 every { mapboxAudioGuidanceServices.voiceInstructionsPlayer } returns player
225225 assertEquals(player, carAppAudioGuidance.getCurrentVoiceInstructionsPlayer())
226+
227+ every { mapboxAudioGuidanceServices.voiceInstructionsPlayer } returns null
228+ assertNull(carAppAudioGuidance.getCurrentVoiceInstructionsPlayer())
226229 }
227230}
You can’t perform that action at this time.
0 commit comments