//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata.test.junit4/TestCoroutineDispatcherRule
TestCoroutineDispatcherRule
[androidJvm] @ExperimentalCoroutinesApi()
class TestCoroutineDispatcherRule : TestWatcher
JUnit4 test rule that swaps main coroutine dispatcher with TestCoroutineDispatcher.
Constructors
TestCoroutineDispatcherRule | [androidJvm] fun TestCoroutineDispatcherRule() |
Functions
Name | Summary |
---|---|
apply | [androidJvm] Content open override fun apply(p0: Statement, p1: Description): Statement |
failed | [androidJvm] Content open fun failed(p0: Throwable, p1: Description) |
skipped | [androidJvm] Content open fun skipped(p0: AssumptionViolatedException, p1: Description) |
succeeded | [androidJvm] Content open fun succeeded(p0: Description) |