I am getting this error:
org.junit.internal.runners.rules.ValidationError: The @ClassRule 'resources' must be static.
When setting up my Dropwizard Kotlin application.
The variable that it is complaining about must be annotated with @JvmField and inside of a companion object. So, for example:
companion object {
@ClassRule
@JvmField
val resources = ...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With