A quick and practical guide to asserting if a method was not invoked with Mockk.
Also find me here:
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Baeldung on Kotlin
- All
- Kotlin Basics (19)
- Kotlin Collections (17)
- Testing (14)
- Kotlin Classes and Objects (14)
- Kotlin (11)
- Kotlin Strings (10)
- Spring (9)
- Kotlin-Java Interop (9)
- Libraries (8)
- Kotlin Concurrency (7)
- Asynchronous Programming (7)
- Kotlin Arrays (6)
- Series (5)
- Kotlin Functions (5)
- Kotlin Server-Side (4)
- Kotlin IO (4)
- Patterns (3)
- Kotlin Web (3)
- Kotlin Numbers (3)
- HTTP Client-Side (3)
- Functional Programming (3)
- Persistence (2)
- Algorithms (2)
- Security (1)
- Kotlin Dates (1)
Mock Static Java Methods Using Mockk
Filed under Testing
A quick and practical guide to mocking static methods with Mockk.
Why We Should Avoid Using Open Members in Kotlin Constructors
Filed under Kotlin Classes and Objects
Using open members in constructors in Kotlin is possible but may lead to unexpected results. We look at how they work and how to avoid using them.
Difference Between Two Dates in Kotlin
Filed under Kotlin Dates
A quick example of how to calculate the difference between two dates using Java 8 built-in classes and Joda time.
Difference Between Coroutine Scope and Coroutine Context
Filed under Asynchronous Programming
A quick and practical guide to the differences between coroutine scope and coroutine context.
Difference Between “open” and “public” Keywords in Kotlin
Filed under Kotlin Basics, Kotlin Classes and Objects
Understand the differences between using the “open” and “public” keywords in Kotlin.
Explicit API Mode in Kotlin
Filed under Kotlin
Learn about the explicit API mode in Kotlin and how it can help us keep our public APIs less error-prone.
Kotlin and Spring Boot @ConfigurationProperties
Filed under Spring
Explore different ways of using Spring @ConfigurationProperties with Kotlin classes.
Create a Deep Copy of a Kotlin Data Class
Filed under Kotlin Classes and Objects
Learn how to make deep copies of Kotlin objects.