InstantTaskExecutorRule


public class InstantTaskExecutorRule extends TestWatcher


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

void
finished(Description description)
void
starting(Description description)

Inherited methods

From org.junit.rules.TestWatcher
Statement
apply(Statement base, Description description)
void
failed(Throwable e, Description description)
void
void
succeeded(Description description)

Public constructors

InstantTaskExecutorRule

Added in 2.0.0
public InstantTaskExecutorRule()

Protected methods

finished

protected void finished(Description description)

starting

protected void starting(Description description)