public final class OkHttp3IdlingResource
extends java.lang.Object
implements android.support.test.espresso.IdlingResource
Modifier and Type | Method and Description |
---|---|
static OkHttp3IdlingResource |
create(java.lang.String name,
okhttp3.OkHttpClient client)
Create a new
IdlingResource from client as name . |
java.lang.String |
getName() |
boolean |
isIdleNow() |
void |
registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback callback) |
@CheckResult @NonNull public static OkHttp3IdlingResource create(@NonNull java.lang.String name, @NonNull okhttp3.OkHttpClient client)
IdlingResource
from client
as name
. You must register
this instance using Espresso.registerIdlingResources
.public java.lang.String getName()
getName
in interface android.support.test.espresso.IdlingResource
public boolean isIdleNow()
isIdleNow
in interface android.support.test.espresso.IdlingResource
public void registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback callback)
registerIdleTransitionCallback
in interface android.support.test.espresso.IdlingResource