- Course
JUnit 5 Testing: Android Unidirectional Data Flow with LiveData
Droidcon SF 2019 | JUnit 5 Testing: Android Unidirectional Data Flow with LiveData | Adam Hurwitz
- Course
JUnit 5 Testing: Android Unidirectional Data Flow with LiveData
Droidcon SF 2019 | JUnit 5 Testing: Android Unidirectional Data Flow with LiveData | Adam Hurwitz
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
Beginning to test the Coinverse app from scratch was daunting at first. You may ask a number of questions. Where do you begin between testing the UI and business logic? How do you handle components that work with the network responses, databases, and analytics? After modularizing the app using Android's Unidirectional Data Flow (UDF) and LiveData, writing local unit tests for the business logic became simpler. In this talk, Adam Hurwitz discusses how to use the UDF pattern with LiveData in Kotlin in order to write JUnit 5 tests with MockK.