/** * Create new instance matching an element with given resources. * * @param drawerLayout Identifier for base drawer layout. * @param drawerContent Identifier for base layout with drawer content. * * @return New instance for actions and assertions. * * @since Espresso Macchiato 0.1 */ public static EspDrawer byId(int drawerLayout, int drawerContent) { return new EspDrawer(drawerLayout, drawerContent); }
@Test public void testTemplateConstructor() { espDrawer = new EspDrawer(espDrawer); espDrawer.open(); espDrawer.assertIsDisplayedOnScreen(); }