Smorg
01/07/2019, 4:17 PMclass MyTest : KoinTest {
    class ComponentA
    class ComponentB(val a: ComponentA)
    @Test
    fun `should inject my components`() {
        startKoin(listOf(module { // can't reference this function
            single { ComponentA() }
            single { ComponentB(get()) }
        }))
        declareMock<ComponentA>()
        // retrieve mock
        assertNotNull(get<ComponentA>())
        // is built with mocked ComponentA
        assertNotNull(get<ComponentB>())
    }