/** * Create new instance matching an element with given resourceId. * * @param resourceId Identifier for this page base layout. * * @return New instance for assertions and actions. * * @since Espresso Macchiato 0.1 */ public static EspPage byId(int resourceId) { return new EspPage(resourceId); }
@Test public void testTemplateConstructor() { espPage = new EspPage(espPage); espPage.assertIsVisible(); } }
@Test public void testCustomBaseMatcher() { espPage = new EspPage(allOf(isDisplayed(), withId(android.R.id.content))); espPage.assertIsVisible(); }