MraidNativeCommandHandler { boolean isTelAvailable(Context context) { Intent telIntent = new Intent(Intent.ACTION_DIAL); telIntent.setData(Uri.parse("tel:")); return IntentUtils.deviceCanHandleIntent(context, telIntent); }  boolean isStorePictureSupported(Context context); static final String ANDROID_CALENDAR_CONTENT_TYPE; }
@Test public void isTelAvailable_whenCanAcceptIntent_shouldReturnTrue() throws Exception { context = createMockContextWithSpecificIntentData("tel", null, null, "android.intent.action.DIAL"); assertThat(subject.isTelAvailable(context)).isTrue(); }
@Test public void isTelAvailable_whenCanNotAcceptIntent_shouldReturnFalse() throws Exception { context = createMockContextWithSpecificIntentData("", null, null, "android.intent.action.DIAL"); assertThat(subject.isTelAvailable(context)).isFalse(); }