Stay organized with collections
Save and categorize content based on your preferences.
android.arch.core.executor.testing
Classes
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 |
A JUnit Test Rule that swaps the background executor used by the Architecture Components with a
different one which executes each task synchronously.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# android.arch.core.executor.testing\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\nandroid.arch.core.executor.testing\n==================================\n\n| The `android.arch` Architecture Components packages are no longer maintained. They have been superseded by the corresponding [androidx.\\*](/jetpack/androidx/migrate) packages. See [androidx.arch.core.executor.testing](/reference/androidx/arch/core/executor/testing/package-summary) instead.\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CountingTaskExecutorRule](/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. |\n| [InstantTaskExecutorRule](/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. |\n\n-\n\n Classes\n -------\n\n - [CountingTaskExecutorRule](/reference/android/arch/core/executor/testing/CountingTaskExecutorRule)\n - [InstantTaskExecutorRule](/reference/android/arch/core/executor/testing/InstantTaskExecutorRule)"]]