carlbenson
09/16/2016, 8:18 AMApplication
is KodeinAware
and has a
override val kodein by Kodein.lazy {
import(someModule)
}
and then in my tests I want to inject another object. I’ve tried
val mockSomeModule = Kodein.Module {
bind<Module>(overrides = true) with provider { mockModule() }
}
val subKodein = Kodein.lazy {
extend(appKodein())
import(mockSomeModule, allowOverride = true)
}
but it still runs with the non-mocked module