InstantTaskExecutorRule

open class InstantTaskExecutorRule
kotlin.Any
   ↳ androidx.arch.core.executor.testing.InstantTaskExecutorRule

A JUnit Test Rule that swaps the background executor used by the Architecture Components with a different one which executes each task synchronously.

You can use this rule for your host side tests that use Architecture Components.

Summary

Public constructors

Protected methods
open Unit
finished(description: Description!)

open Unit
starting(description: Description!)

Public constructors

<init>

InstantTaskExecutorRule()

Protected methods

finished

protected open fun finished(description: Description!): Unit

starting

protected open fun starting(description: Description!): Unit