amatkivskiy
10/29/2018, 12:31 PMString
, Boolean
?
I am trying to create module like this:
val testModule = module {
single(name = "debug") { true }
}
and then check it
checkModules(listOf(testModule))
and getting this
2018-10-29 13:51:37:850 (KOIN)::[e] Error while resolving instance for class 'java.lang.Boolean' - error: org.mockito.exceptions.base.MockitoException:
Cannot mock/spy class java.lang.Boolean
Mockito cannot mock/spy because :
- Cannot mock wrapper types, String.class or Class.class