koin-test / org.koin.test

Package org.koin.test

Types

AutoCloseKoinTest

abstract class AutoCloseKoinTest : KoinTest

Extended Koin Test - embed autoclose @after method to close Koin after every test

KoinTest

interface KoinTest : KoinComponent

Koin Test Component

Functions

get

fun <T> KoinTest.get(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T

Get an instance from Koin

inject

fun <T> KoinTest.inject(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): Lazy<T>

Lazy inject an instance from Koin