teller-android / com.levibostian.teller.repository / OnlineRepository / Testing

Testing

object Testing

Used for testing purposes to initialize the state of a OnlineRepository subclass instance.

See Also

OnlineRepositoryRefreshResultTesting

Extension Functions

initState

fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> Testing.initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues

initStateAsync

fun <FETCH_RESPONSE, REPO : OnlineRepository<*, GetCacheRequirements, FETCH_RESPONSE>> Testing.initStateAsync(repository: REPO, requirements: GetCacheRequirements, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit