Move away from deprecated FakeFeatureFactory.setupForTest()
Test: rerun Change-Id: I896ba414315ddb1664c0499264f4992f0554ef98
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package com.android.settings.deviceinfo;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.mockito.Answers.RETURNS_DEEP_STUBS;
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Matchers.eq;
|
||||
@@ -83,7 +82,7 @@ public class BuildNumberPreferenceControllerTest {
|
||||
@Before
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mFactory = FakeFeatureFactory.setupForTest(mContext);
|
||||
mFactory = FakeFeatureFactory.setupForTest();
|
||||
mLifecycle = new Lifecycle(() -> mLifecycle);
|
||||
when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager);
|
||||
mController = new BuildNumberPreferenceController(
|
||||
|
Reference in New Issue
Block a user