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

Commit ebc40bab authored by William Escande's avatar William Escande Committed by Android (Google) Code Review
Browse files

Merge changes from topic "cherrypicker-L03200000958867869:N89000001342450356" into tm-qpr-dev

* changes:
  Fix MapClientContentTest test
  Fix Null Pointer crash
parents 07a33cee c1b9ee67
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -364,6 +364,17 @@ public class MapClientContentTest {
                eq(SubscriptionManager.SUBSCRIPTION_TYPE_REMOTE_SIM));
    }

    /**
     * Test to validate that cleaning content does not crash when no subscription are available.
     */
    @Test
    public void testCleanUpWithNoSubscriptions() {
        when(mMockSubscriptionManager.getActiveSubscriptionInfoList())
                .thenReturn(null);

        MapClientContent.clearAllContent(mMockContext);
    }

    void createTestMessages() {
        mOriginator = new VCardEntry();
        VCardProperty property = new VCardProperty();