Tag: test
Gradle Java Test Fixtures Plugin
Gradle Plugin which automatically create a testFixtures
source set, in which you can write your test fixtures.
System Stubs
System Stubs is used to test code which depends on methods in java.lang.System.
Test Micronaut POJOs contain validation annotations
I like to define validation annotations for Micronaut application's models.
Test Micronaut POJOs are annotated with @Introspected
I always annotate my model classes with @Introspected. It is easy to test that you don't forget the annotation.
Testing JSON serialization with Micronaut applications
In Micronaut applications, you can control JSON serialization with Jackson annotations. Inject ObjectMapper into your tests to verify it.
Test Micronaut Health endpoint
I always expose the /health endpoint in my Micronaut applications. It is easy to test it.
Gradle, Jacoco and 90% Code Coverage
With Jacoco Gradle plugin it is easy to setup your project to enforce a coverage percentage.