Created
December 22, 2015 15:54
-
-
Save rafaeltoledo/318338c751d07ea7df0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(AndroidJUnit4.class) | |
@LargeTest | |
public class MainActivityTest { | |
@Rule | |
public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class); | |
@Test | |
public void shouldUpdateTextAfterButtonClick() { | |
onView(withId(R.id.button)).perform(click()); | |
onView(withId(R.id.text)).check(matches(withText("Hello World!"))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment