astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

PagerSlidingTabStrip not working with espresso test #228

Closed josh-burton closed 9 years ago

josh-burton commented 9 years ago

As see here (http://stackoverflow.com/questions/31023977/android-espresso-viewpager-does-not-have-adapter-instance), it seems PagerSlidingTabStrip has issues with running in an espresso instrumentation unit test.

It throws the following error:

ava.lang.IllegalStateException: ViewPager does not have adapter instance. at com.astuetz.PagerSlidingTabStrip.setViewPager(PagerSlidingTabStrip.java:177) at

Even though when debugging, the adapter is definitely created, and set.

Any ideas?