Merge "Fix WifiDetailPreferenceControllerTest new test case failure" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
28cfb72aaa
@@ -1653,7 +1653,7 @@ public class WifiDetailPreferenceControllerTest {
|
|||||||
displayAndResume();
|
displayAndResume();
|
||||||
|
|
||||||
// change as not in range
|
// 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();
|
boolean changed = mController.updateAccessPoint();
|
||||||
|
|
||||||
assertThat(changed).isTrue();
|
assertThat(changed).isTrue();
|
||||||
@@ -1666,7 +1666,7 @@ public class WifiDetailPreferenceControllerTest {
|
|||||||
displayAndResume();
|
displayAndResume();
|
||||||
|
|
||||||
// change as in range
|
// change as in range
|
||||||
when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(true);
|
when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(true);
|
||||||
boolean changed = mController.updateAccessPoint();
|
boolean changed = mController.updateAccessPoint();
|
||||||
|
|
||||||
assertThat(changed).isTrue();
|
assertThat(changed).isTrue();
|
||||||
|
Reference in New Issue
Block a user