android.support.test.filters.MediumTest Java Examples

The following examples show how to use android.support.test.filters.MediumTest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivityTest.java    From user-interface-samples with Apache License 2.0 5 votes vote down vote up
@Test
@MediumTest
public void allTextsDisplayed() throws Exception {
    @StringRes final int[] resIds = {
            R.string.emoji_text_view,
            R.string.emoji_edit_text,
            R.string.emoji_button,
            R.string.regular_text_view,
            R.string.custom_text_view,
    };
    for (int resId : resIds) {
        final String text = rule.getActivity().getString(resId, MainActivity.EMOJI);
        onView(withText(text)).check(matches(isDisplayed()));
    }
}
 
Example #2
Source File: MainActivityTest.java    From android-EmojiCompat with Apache License 2.0 5 votes vote down vote up
@Test
@MediumTest
public void allTextsDisplayed() throws Exception {
    @StringRes final int[] resIds = {
            R.string.emoji_text_view,
            R.string.emoji_edit_text,
            R.string.emoji_button,
            R.string.regular_text_view,
            R.string.custom_text_view,
    };
    for (int resId : resIds) {
        final String text = rule.getActivity().getString(resId, MainActivity.EMOJI);
        onView(withText(text)).check(matches(isDisplayed()));
    }
}