{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class AppNotIdleException extends RuntimeException implements EspressoException
| java.lang.Object | ||||
| ↳ | kotlin.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | androidx.test.espresso.AppNotIdleException | |||
An exception which indicates that the App has not become idle even after the specified duration.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static AppNotIdleException |
This method is deprecated. use |
static AppNotIdleException |
Creates a new AppNotIdleException suitable for erroring out a test case. |
Inherited methods |
|
|---|---|
public static AppNotIdleExceptioncreate(List<String> idleConditions, int loopCount, int seconds)
Creates a new AppNotIdleException suitable for erroring out a test case.
This should be called only from the main thread if the app does not idle out within the specified duration.
| Parameters | |
|---|---|
List<String> idleConditions |
list of idleConditions that failed to become idle. |
int loopCount |
number of times it was tried to check if they became idle. |
int seconds |
number of seconds that was tried before giving up. |
| Returns | |
|---|---|
AppNotIdleException |
a AppNotIdleException suitable to be thrown on the instrumentation thread. |
public static AppNotIdleException create(List<String> idleConditions, String message)
Creates a new AppNotIdleException suitable for erroring out a test case.
This should be called only from the main thread if the app does not idle out within the specified duration.
| Parameters | |
|---|---|
List<String> idleConditions |
list of idleConditions that failed to become idle. |
String message |
a message about the failure. |
| Returns | |
|---|---|
AppNotIdleException |
a AppNotIdleException suitable to be thrown on the instrumentation thread. |