Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Used Spring (and Hibernate) with Kotlin for years and it works like a charme. If you don't create a new project on start.spring.io , I'd suggest to add the all-open respective the jpa kotlin plug-in to your Gradle konfiguration. These plug-ins will make your life easier, because otherwise you might need to find some workarounds for final class (the default) in Kotlin. But if you create a project with start.spring.io everything works out of the box.
https://mockk.io/ is great, too.
To be fair there were quite some unexpected surprises in the past with Spring and Kotlin (e.g. the Cachable annotation did not work with suspend functions, not all Spring security annotations were supported with coroutines), but most of them were ironed out already.
What's wrong with Mockito for Kotlin?