dave08
09/24/2017, 12:28 PMabstract class InjectedAbstractVerticle: AbstractVerticle(), KodeinInjected {
abstract val kodeinModule: Kodein.Module
var kodein = Kodein {
import(kodeinModule)
}
override val injector: KodeinInjector = KodeinInjector()
}
I use this for easy mocking in my spek tests... it runs nicely there, but when I try deploying the verticle it gives me:
SEVERE: Parameter specified as non-null is null: method com.github.salomonbrys.kodein.Kodein$Builder.import, parameter module
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method com.github.salomonbrys.kodein.Kodein$Builder.import, parameter module