Merge "Fix IpClientTest" am: 5e823ab263 am: 3d212804df
am: 3b37567d12
Change-Id: If84e339670087d4484542801c361c7e70ee01793
This commit is contained in:
@@ -103,9 +103,7 @@ public class IpClientTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
|
||||
when(mContext.getSystemService(eq(Context.ALARM_SERVICE))).thenReturn(mAlarm);
|
||||
when(mContext.getSystemServiceName(ConnectivityManager.class))
|
||||
.thenReturn(Context.CONNECTIVITY_SERVICE);
|
||||
when(mContext.getSystemService(Context.CONNECTIVITY_SERVICE)).thenReturn(mCm);
|
||||
when(mContext.getSystemService(eq(ConnectivityManager.class))).thenReturn(mCm);
|
||||
when(mContext.getResources()).thenReturn(mResources);
|
||||
when(mResources.getInteger(R.integer.config_networkAvoidBadWifi))
|
||||
.thenReturn(DEFAULT_AVOIDBADWIFI_CONFIG_VALUE);
|
||||
|
||||
Reference in New Issue
Block a user