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

Commit 23a6aa59 authored by Idriss Juhoor's avatar Idriss Juhoor Committed by Automerger Merge Worker
Browse files
parents 788d4da8 7b7275f9
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(mMockSubscription.getSubscriptionType())
                .thenReturn(null);

        MapClientContent.clearAllContent(mMockContext);
    }

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