diff --git a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java index 904fdd86a05..d4ce481e005 100644 --- a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java @@ -1653,7 +1653,7 @@ public class WifiDetailPreferenceControllerTest { displayAndResume(); // change as not in range - when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(false); + when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(false); boolean changed = mController.updateAccessPoint(); assertThat(changed).isTrue(); @@ -1666,7 +1666,7 @@ public class WifiDetailPreferenceControllerTest { displayAndResume(); // change as in range - when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(true); + when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(true); boolean changed = mController.updateAccessPoint(); assertThat(changed).isTrue();