Skip to content
Snippets Groups Projects
Commit b406d2b5 authored by Kihong Seong's avatar Kihong Seong
Browse files

Disable MapClientContentTest when sms is not supported

Bug: 266850093
Test: atest BluetoothInstrumentationTests
Change-Id: I54b0eee80fb856c63c454c0076ec57ee0d17555b
parent 5c649dc7
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