//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

   
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?)