Merge "Remove service before adding test mock." into tm-dev
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