Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 685d3d77 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Init mocks after checking assumptions in MapClientStateMachineTest"

parents 827f320d c1253799
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -102,13 +102,12 @@ public class MapClientStateMachineTest {

    @Before
    public void setUp() throws Exception {
        MockitoAnnotations.initMocks(this);
        mTargetContext = InstrumentationRegistry.getTargetContext();
        mMockContentProvider = new MockSmsContentProvider();
        mMockContentResolver = new MockContentResolver();

        Assume.assumeTrue("Ignore test when MapClientService is not enabled",
                mTargetContext.getResources().getBoolean(R.bool.profile_supported_mapmce));
        MockitoAnnotations.initMocks(this);
        mMockContentProvider = new MockSmsContentProvider();
        mMockContentResolver = new MockContentResolver();
        TestUtils.setAdapterService(mAdapterService);
        when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager);
        doReturn(true, false).when(mAdapterService).isStartedProfile(anyString());