//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
Name | Summary |
---|---|
TestCoroutineDispatcherRule | [androidJvm] fun TestCoroutineDispatcherRule() |
Functions
Name | Summary |
---|---|
apply | [androidJvm] Content open override fun apply(p0: Statement, p1: Description): Statement |
equals | [androidJvm] Content open operator fun equals(other: Any?): Boolean |
failed | [androidJvm] Content open fun failed(p0: Throwable, p1: Description) |
hashCode | [androidJvm] Content open fun hashCode(): Int |
skipped | [androidJvm] Content open fun skipped(p0: AssumptionViolatedException, p1: Description) |
succeeded | [androidJvm] Content open fun succeeded(p0: Description) |
toString | [androidJvm] Content open fun toString(): String |