https://kotlinlang.org logo
#android
Title
# android
r

rwachol

02/22/2017, 9:21 AM
@jw @mg6maciej about yesterday’s rx espresso idling. I’ve found this gist: https://gist.github.com/aahlenst/8d3958ceceb971465873e5818ba6fd1f and then simply made
@BeforeClass
in test
Copy code
@BeforeClass
public static void setUp() throws Exception {
  RxIdlingResource rxIdlingResource = new RxIdlingResource();
  Espresso.registerIdlingResources(rxIdlingResource);
  RxJavaPlugins.setScheduleHandler(rxIdlingResource);
}
m

mg6maciej

02/22/2017, 9:58 AM
rwachol: LGTM, but I don't need idling resource 🙂
r

rwachol

02/22/2017, 9:58 AM
if you’ve ever need 😉 it’s better to know
m

mg6maciej

02/22/2017, 9:59 AM
Yes, I know the concept, but mocking apis to return
just(...)
is fast.