Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Last active December 13, 2018 09:13
Show Gist options
  • Save catalinghita8/822e2c1a77026e0e3624a00cb8c5bd1c to your computer and use it in GitHub Desktop.
Save catalinghita8/822e2c1a77026e0e3624a00cb8c5bd1c to your computer and use it in GitHub Desktop.
// Register your Idling Resource before any tests regarding this component
@Before
public void registerIdlingResource() {
IdlingRegistry.getInstance().register(EspressoIdlingResource.getIdlingResource());
}
// Unregister your Idling Resource so it can be garbage collected and does not leak any memory
@After
public void unregisterIdlingResource() {
IdlingRegistry.getInstance().unregister(EspressoIdlingResource.getIdlingResource());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment