Remove service before adding test mock.
Bug: 223101827 Change-Id: I45788f4ca7add353135ff3af73de2b5f4997ff14 Test: N/A
This commit is contained in:
@@ -489,6 +489,7 @@ public class AppStandbyControllerTests {
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
LocalServices.removeServiceForTest(UsageStatsManagerInternal.class);
|
||||
LocalServices.addService(
|
||||
UsageStatsManagerInternal.class, mock(UsageStatsManagerInternal.class));
|
||||
MyContextWrapper myContext = new MyContextWrapper(InstrumentationRegistry.getContext());
|
||||
|
||||
Reference in New Issue
Block a user