- [Instructor] We have verified the incoming intent…for IdeasActivity and the outgoing intent for MainActivity.…Let's verify the activity result returning…from IdeasActivity to MainActivity, namely the cat name.…We will be using intending instead of intended to do that.…Both intending and intended checks…the outgoing intent of an activity.…
The difference is that intended just watches what happens.…In other words, it launches the activity…and records the intent passed to it.…Intending, on the other hand, does not launch the activity.…It intercepts and blocks the activity from launching.…This is great if you want to stop out the activity result.…To stop the activity result,…we will call intending with the same intent matcher,…and add respondsWith at the end…to specify the activity result we want.…
Let's do that next.…
- Incoming and outgoing intents
- How intents are used
- Dependency injection
- Why extract dependencies?
- Mockito and Dagger
Skill Level Advanced
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Effective Android Testing for Mobile Developerswith Chiu-Ki Chan2h 56m Intermediate
2. Hermetic Test Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.