Hi guys, Was wondering wether koin supports primit...
# koin
a
Hi guys, Was wondering wether koin supports primitives as dependency like
String
,
Boolean
? I am trying to create module like this:
Copy code
val testModule = module {
      single(name = "debug") { true }
}
and then check it
Copy code
checkModules(listOf(testModule))
and getting this
Copy code
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