Search in sources :

Example 1 with IdlingResource

use of androidx.test.espresso.IdlingResource in project DiscreteScrollView by yarolegovich.

the class DiscreteScrollViewTest method setUp.

@Before
@CallSuper
public void setUp() {
    TestActivity activity = testActivity.getActivity();
    scrollView = activity.getScrollView();
    adapter = testActivity.getActivity().getAdapter();
    List<IdlingResource> resources = activity.getIdlingResources();
    idlingResources = resources.toArray(new IdlingResource[resources.size()]);
    IdlingRegistry.getInstance().register(idlingResources);
}
Also used : IdlingResource(androidx.test.espresso.IdlingResource) TestActivity(com.yarolegovich.discretescrollview.context.TestActivity) Before(org.junit.Before) CallSuper(androidx.annotation.CallSuper)

Aggregations

CallSuper (androidx.annotation.CallSuper)1 IdlingResource (androidx.test.espresso.IdlingResource)1 TestActivity (com.yarolegovich.discretescrollview.context.TestActivity)1 Before (org.junit.Before)1