step-6/app/src/androidTestMock/java/com/example/android/testing/notes/notedetail/NoteDetailScreenTest.java
/**
     * Unregister your Idling Resource so it can be garbage collected and does not leak any memory.
     */
Unregister your Idling Resource so it can be garbage collected and does not leak any memory.
Unregister your Idling Resource so it can be garbage collected and does not leak any memory .
@After
    public void unregisterIdlingResource() {
        Espresso.unregisterIdlingResources(
                mNoteDetailActivityTestRule.getActivity().getCountingIdlingResource());
    }
@ After public void unregisterIdlingResource ( ) { Espresso . unregisterIdlingResources ( mNoteDetailActivityTestRule . getActivity ( ) . getCountingIdlingResource ( ) ) ; }
Unregister your Idling Resource so it can be garbage collected and does not leak any memory.
Unregister your Idling Resource so it can be garbage collected and does not leak any memory .