This example project shows a simple way of mocking the default JWT authorization flow for Micronaut controller unit tests, since Micronaut lacks providing an annotation for this, e.g. like SpringBoot does with @MockUser.
- Gradle 6.1
- Kotlin 1.3.50 / Java 11
- Micronaut 1.3.4