//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata.test.junit5/TestCoroutineDispatcherExtension
TestCoroutineDispatcherExtension
[androidJvm] @ExperimentalCoroutinesApi()
class TestCoroutineDispatcherExtension : BeforeEachCallback, AfterEachCallback
JUnit5 extension that swaps main coroutine dispatcher with TestCoroutineDispatcher.
Constructors
Name | Summary |
---|---|
TestCoroutineDispatcherExtension | [androidJvm] fun TestCoroutineDispatcherExtension() |
Functions
Name | Summary |
---|---|
afterEach | [androidJvm] Content open override fun afterEach(context: ExtensionContext?) |
beforeEach | [androidJvm] Content open override fun beforeEach(context: ExtensionContext?) |
equals | [androidJvm] Content open operator fun equals(other: Any?): Boolean |
hashCode | [androidJvm] Content open fun hashCode(): Int |
toString | [androidJvm] Content open fun toString(): String |