//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata.test.junit5

Package it.czerwinski.android.lifecycle.livedata.test.junit5

[androidJvm]

JUnit5 testing extensions for Jetpack Lifecycle

Types

Name Summary
InstantTaskExecutorExtension [androidJvm]
Content
class InstantTaskExecutorExtension : InstantTaskExecutorRule, BeforeEachCallback, AfterEachCallback
More info
JUnit5 extension that swaps the background executor used by the Architecture Components with a different one which executes each task synchronously.


TestCoroutineDispatcherExtension [androidJvm]
Content
@ExperimentalCoroutinesApi()

class TestCoroutineDispatcherExtension : BeforeEachCallback, AfterEachCallback
More info
JUnit5 extension that swaps main coroutine dispatcher with TestCoroutineDispatcher.