@@ -0,0 +1,1347 @@
+package es.voghdev.pdfviewpager.sample;%0A%0Aimport androidx.test.espresso.intent.rule.IntentsTestRule;%0Aimport androidx.test.filters.LargeTest;%0Aimport androidx.test.runner.AndroidJUnit4;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport es.voghdev.pdfviewpager.MainActivity;%0Aimport es.voghdev.pdfviewpager.R;%0A%0Aimport static androidx.test.espresso.Espresso.onView;%0Aimport static androidx.test.espresso.action.ViewActions.click;%0Aimport static androidx.test.espresso.assertion.ViewAssertions.matches;%0Aimport static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static androidx.test.espresso.matcher.ViewMatchers.withId;%0Aimport static androidx.test.espresso.matcher.ViewMatchers.withText;%0A%0A@RunWith(AndroidJUnit4.class) @LargeTest%0Apublic class InvalidPdfTests extends BaseTest %7B%0A    @Rule%0A    public IntentsTestRule%3CMainActivity%3E activityRule =%0A            new IntentsTestRule%3C%3E(MainActivity.class, true, false);%0A%0A    @Test%0A    public void showsAnErrorMessageWhenTryingToLoadAnInvalidPdf() %7B%0A        startActivity();%0A        openActionBarMenu();%0A%0A        onView(withText(R.string.menu_sample10_txt)).perform(click());%0A        onView(withId(R.id.pdfErrorView)).check(matches(isDisplayed()));%0A    %7D%0A%0A    private MainActivity startActivity() %7B%0A        return activityRule.launchActivity(null);%0A    %7D%0A%7D%0A

Add espresso tests for invalid pdf case