Expanded Library

JUnit 5 Testing: Android Unidirectional Data Flow with LiveData

by droidcon SF

Droidcon SF 2019 | JUnit 5 Testing: Android Unidirectional Data Flow with LiveData | Adam Hurwitz

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.

Table of contents

JUnit 5 Testing: Android Unidirectional Data Flow with LiveData
33mins

About the author

Droidcon is the largest global network of developer conferences which bring together the industry's foremost experts dedicated to advancing the Android platform. Droidcon engages a global network of over 25,000 developers attending our events in 22 cities. Our first droidcon conference was held in 2009 in Berlin and since then it has spread its influence across the globe and has established itself as the world's foremost community-driven conference format. Droidcon is the place to meet the inter... more

Ready to upskill? Get started