Stay organized with collections Save and categorize content based on your preferences.

androidx.test.rule

Classes

ActivityTestRule

This class is deprecated.

use androidx.test.core.app.ActivityScenario or instead.

DisableOnAndroidDebug

The DisableOnAndroidDebug Rule allows you to label certain rules to be disabled when debugging.

GrantPermissionRule

The GrantPermissionRule Rule allows granting of runtime permissions on Android M (API 23) and above.

ServiceTestRule

A JUnit rule that provides a simplified mechanism to start and shutdown your service before and after the duration of your test.

UiThreadTestRule

This class is deprecated.

use UiThreadTest directly without this rule.