Java Code Examples for android.support.test.espresso.contrib.CountingIdlingResource

The following are top voted examples for showing how to use android.support.test.espresso.contrib.CountingIdlingResource. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: RxBinding   File: RxSlidingPaneLayoutTest.java   View source code 5 votes vote down vote up
@Before public void setUp() {
  RxSlidingPaneLayoutTestActivity activity = activityRule.getActivity();
  view = activity.slidingPaneLayout;

  idler = new CountingIdlingResource("counting idler");
  Espresso.registerIdlingResources(idler);
}
 
Example 2
Project: android-topeka   File: QuizActivity.java   View source code 4 votes vote down vote up
@SuppressWarnings("unused")
@VisibleForTesting
public CountingIdlingResource getCountingIdlingResource() {
    return mCountingIdlingResource;
}
 
Example 3
Project: material-activity-chooser   File: IdlingResourceBottomSheetCallback.java   View source code 4 votes vote down vote up
public IdlingResourceBottomSheetCallback(BottomSheetBehavior.BottomSheetCallback wrappedCallback, CountingIdlingResource mBottomSheetIdlingResource) {
    this.mWrappedCallback = wrappedCallback;
    this.mBottomSheetIdlingResource = mBottomSheetIdlingResource;
}
 
Example 4
Project: CleanGUITestArchitecture   File: CountingIdlingResourceListenerImpl.java   View source code 4 votes vote down vote up
public CountingIdlingResourceListenerImpl(final String idlingResourceName) {
    mCountingIdlingResource = new CountingIdlingResource(idlingResourceName);
}
 
Example 5
Project: CleanGUITestArchitecture   File: CountingIdlingResourceListenerImpl.java   View source code 4 votes vote down vote up
public CountingIdlingResource getCountingIdlingResource() {
    return mCountingIdlingResource;
}