/** * Create new instance matching an element with given resourceId. * * @param resourceId Identifier for this element. * * @return New element instance for actions and assertions. * * @since Espresso Macchiato 0.1 */ public static EspEditText byId(int resourceId) { return new EspEditText(resourceId); }
/** * Create new instance matching an element with given text. * * @param text Identifier for this element. * * @return New element instance for actions and assertions. * * @since Espresso Macchiato 0.2 */ public static EspEditText byText(String text) { return new EspEditText(withText(text)); }
public EspEditText username() { return new EspEditText(R.id.editTextUsername); }
public EspEditText password() { return new EspEditText(R.id.editTextPassword); }
@Test public void testTemplateConstructor() { espEditText = new EspEditText(espEditText); espEditText.assertIsVisible(); } }
@Test public void testCustomBaseMatcher() { espEditText.replaceText(INITIAL_TEXT); espEditText = new EspEditText(withText(INITIAL_TEXT)); espEditText.assertIsVisible(); }