TestScopeProvider

class TestScopeProvider : ScopeProvider

ScopeProvider implementation for testing. You can either back it with your own instance, or just stub it in place and use its public emit APIs.

Functions

create
Link copied to clipboard
open fun create(): TestScopeProvider
Creates a new provider backed by an internal CompletableSubject.
open fun create(delegate: Completable): TestScopeProvider
Creates a new provider backed by {@code delegate}.
emit
Link copied to clipboard
open fun emit()
Emits a success event, just a simple Object.
requestScope
Link copied to clipboard
open fun requestScope(): CompletableSource
Returns a CompletableSource that, upon completion, will trigger disposal.