Skip to content

Commit

Permalink
feature/fix-unit-tests adding mock for removeLocationButton
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerPacific committed Oct 14, 2023
1 parent d1b6c99 commit 14d9096
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class LocationPickerActivityUnitTests {
@Mock
private lateinit var style: Style

@Mock
private lateinit var removeLocationButton: Button

@Before
fun setUp() {
MockitoAnnotations.initMocks(this)
Expand All @@ -111,6 +114,7 @@ class LocationPickerActivityUnitTests {
Whitebox.setInternalState(activity, "smallToolbarText", smallToolbarText)
Whitebox.setInternalState(activity, "fabCenterOnLocation", fabCenterOnLocation)
Whitebox.setInternalState(activity, "tvAttribution", tvAttribution)
Whitebox.setInternalState(activity, "removeLocationButton", removeLocationButton)
}

@Test
Expand Down

0 comments on commit 14d9096

Please sign in to comment.