Explore the best practices of unit testing StateFlows: the cases with single and continuous state updates, as well as converting a regular Flow into a StateFlow.
Also find me here:
Baeldung Author
Vinay Wadhwa
Vinay is an Android engineer with over 10 years of experience in the industry, specializing in the multimedia and fintech domains. In addition to their professional journey in multiple organizations, they also contribute to open-source projects. When they are not coding, you'll probably find them reading about history and geopolitics, learning languages, automating the smart lights in their home, or simply Netflix and chilling. Currently, they live in Hyderabad, India.
Here's what I've written (so far):
Baeldung on Kotlin
- All
- Kotlin Collections (4)
- Kotlin Classes and Objects (3)
- Kotlin Basics (3)
- Kotlin Strings (2)
- Kotlin Numbers (2)
- Testing (1)
- Kotlin-Java Interop (1)
- Kotlin IO (1)
- Kotlin Concurrency (1)
- Kotlin Arrays (1)
- Asynchronous Programming (1)
Avoiding the ConcurrentModificationException in Kotlin
Filed under Kotlin Collections
A quick tutorial on fixing the concurrent modification exception in Kotlin.
Data Objects in Kotlin
Filed under Kotlin Classes and Objects
In this article, we learn what Data Objects are in Kotlin.
Converting Callback Methods to Coroutines in Kotlin
Filed under Asynchronous Programming
Explore ways to convert asynchronous callback driven code to Kotlin coroutines.
Comparator in Kotlin
Filed under Kotlin Basics
Learn how to use and create Comparators effectively in Kotlin.
IO and Default Dispatchers in Kotlin Coroutines
Filed under Kotlin Concurrency, Kotlin IO
Learn about the Default and IO Dispatchers for Kotlin Coroutines and discover some strategies for using them effectively.
Create and Throw a Custom Exception With Kotlin
Filed under Kotlin Basics
Learn the basics of creating full-featured custom exceptions in Kotlin.
Convert Long to Int
Filed under Kotlin Numbers
A quick and practical guide to Long to Int conversions in Kotlin.
Kotlin “super is not an expression” Error
Filed under Kotlin Classes and Objects
A quick and practical guide to solving the “‘super’ is not an expression” error in Kotlin.