# android.arch.core.executor.testing

added in[version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# android.arch.core.executor.testing

| The`android.arch`Architecture Components packages are no longer maintained. They have been superseded by the corresponding[androidx.\*](https://developer.android.com/jetpack/androidx/migrate)packages. See[androidx.arch.core.executor.testing](https://developer.android.com/reference/androidx/arch/core/executor/testing/package-summary)instead.

## Classes

|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CountingTaskExecutorRule](https://developer.android.com/reference/android/arch/core/executor/testing/CountingTaskExecutorRule) | A JUnit Test Rule that swaps the background executor used by the Architecture Components with a different one which counts the tasks as they are start and finish. |
| [InstantTaskExecutorRule](https://developer.android.com/reference/android/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.              |

-

  ## Classes

  - [CountingTaskExecutorRule](https://developer.android.com/reference/android/arch/core/executor/testing/CountingTaskExecutorRule)
  - [InstantTaskExecutorRule](https://developer.android.com/reference/android/arch/core/executor/testing/InstantTaskExecutorRule)