mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Fix Android Studio Warnings #13282
This commit is contained in:
parent
08f18ff4b3
commit
295fb61d79
1 changed files with 4 additions and 4 deletions
|
|
@ -295,11 +295,11 @@ class NearbyParentFragmentPresenterTest {
|
|||
@Test
|
||||
fun testSearchCloseToCurrentLocationWhenFar() {
|
||||
whenever(nearbyParentFragmentView.lastMapFocus).thenReturn(LatLng(2.0, 1.0, 0.0F))
|
||||
whenever(nearbyParentFragmentView.mapFocus).thenReturn(LatLng(2.0, 1.0, 0.0F))
|
||||
// 111.19 km real distance, return false if 148306.444306 > currentLocationSearchRadius
|
||||
whenever(nearbyParentFragmentView.mapFocus).thenReturn(LatLng(2.0, 1.02, 0.0F))
|
||||
NearbyController.currentLocationSearchRadius = 148306.0
|
||||
val isClose = nearbyPresenter?.searchCloseToCurrentLocation()
|
||||
assertFalse(isClose!!.equals(false))
|
||||
// 111.19 km real distance, return false if 148306.444306 > currentLocationSearchRadius
|
||||
val isClose = nearbyPresenter.searchCloseToCurrentLocation()
|
||||
assertFalse(isClose)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue