Fix Android Studio Warnings #13282

This commit is contained in:
sonalyadav 2024-12-19 19:50:25 +05:30 committed by Sonal Yadav
parent 08f18ff4b3
commit 295fb61d79

View file

@ -295,11 +295,11 @@ class NearbyParentFragmentPresenterTest {
@Test @Test
fun testSearchCloseToCurrentLocationWhenFar() { fun testSearchCloseToCurrentLocationWhenFar() {
whenever(nearbyParentFragmentView.lastMapFocus).thenReturn(LatLng(2.0, 1.0, 0.0F)) whenever(nearbyParentFragmentView.lastMapFocus).thenReturn(LatLng(2.0, 1.0, 0.0F))
whenever(nearbyParentFragmentView.mapFocus).thenReturn(LatLng(2.0, 1.0, 0.0F)) whenever(nearbyParentFragmentView.mapFocus).thenReturn(LatLng(2.0, 1.02, 0.0F))
// 111.19 km real distance, return false if 148306.444306 > currentLocationSearchRadius
NearbyController.currentLocationSearchRadius = 148306.0 NearbyController.currentLocationSearchRadius = 148306.0
val isClose = nearbyPresenter?.searchCloseToCurrentLocation() // 111.19 km real distance, return false if 148306.444306 > currentLocationSearchRadius
assertFalse(isClose!!.equals(false)) val isClose = nearbyPresenter.searchCloseToCurrentLocation()
assertFalse(isClose)
} }
/** /**