It is easy to update an EditText with Espresso, but I can not find a way to change a text (like with a TextView.setText(\"someText\"); method) during the testing process.
You can simply add your layout TextView in your layout that you have declared
** Write code in test class to check text is displaying on textview**
@Test public void checkUserId(){ Espresso.onView(withId(R.id.textView)).check(ViewAssertions.matches(ViewMatchers.isDisplayed())); }