Last active
December 13, 2018 09:13
-
-
Save catalinghita8/822e2c1a77026e0e3624a00cb8c5bd1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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