Starting an activity—An activity represents a single screen in the Android application. An activity instance can be launched by passing an intent ...
© Denys Zelenchuk 2019
Denys ZelenchukAndroid Espresso Revealedhttps://doi.org/10.1007/978-1-4842-4315-2_55. Verifying and Stubbing Intents with IntentMatchers
Denys Zelenchuk1
(1)
Zürich, Switzerland
Throughout this chapter, we will discuss how to verify and stub application intents. An intent is a messaging object you can use to request an action from another app component. Intents facilitate communication between components in several ways. According to the Android Intent and Filters documentation (
https://developer.android.com/guide/components/intents-filters
), there are three fundamental use cases:
Get Android Espresso Revealed: Writing Automated UI Tests now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.