Skip to content
Snippets Groups Projects
Commit 42573e42 authored by Kihong Seong's avatar Kihong Seong Committed by Gerrit Code Review
Browse files

Merge "Disable MapClientContentTest when sms is not supported"

parents 82af27aa b406d2b5
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ import android.os.Bundle;
import android.os.Handler;
import android.provider.Telephony.Mms;
import android.provider.Telephony.Sms;
import android.telephony.SmsManager;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.test.mock.MockContentProvider;
......@@ -55,6 +56,7 @@ import com.android.vcard.VCardProperty;
import org.junit.After;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
......@@ -107,6 +109,7 @@ public class MapClientContentTest {
private FakeContentProvider mMockSmsContentProvider;
private FakeContentProvider mMockMmsContentProvider;
private FakeContentProvider mMockThreadContentProvider;
private SmsManager mSmsManager = SmsManager.getDefault();
@Mock
private SubscriptionManager mMockSubscriptionManager;
......@@ -115,6 +118,8 @@ public class MapClientContentTest {
@Before
public void setUp() throws Exception {
// Do not run test if sms is not supported
Assume.assumeTrue(mSmsManager.isImsSmsSupported());
MockitoAnnotations.initMocks(this);
mTargetContext = InstrumentationRegistry.getTargetContext();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment