Merge "Revert "Updated the test to adapt new inlined mocks""
This commit is contained in:
@@ -21,7 +21,6 @@ import static org.mockito.Mockito.when;
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
|
||||
@@ -43,7 +42,7 @@ public class ConnectivitySubsystemsRecoveryManagerTest {
|
||||
@Spy
|
||||
Context mContext = ApplicationProvider.getApplicationContext();
|
||||
@Spy
|
||||
Handler mMainHandler = new Handler(Looper.getMainLooper());
|
||||
Handler mMainHandler = ApplicationProvider.getApplicationContext().getMainThreadHandler();
|
||||
@Mock
|
||||
PackageManager mPackageManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user