@Test public void recycle_ReleasesResourcesOfEachManager() { mDiffRequestManagerHolder.recycle(); then(mDiffRequestManager).should().releaseResources(); }
void recycle() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.releaseResources(); } mDiffRequestManagers.clear(); }
DiffRequestManagerHolder { void recycle() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.releaseResources(); } mDiffRequestManagers.clear(); } }
DiffRequestManagerHolder { void recycle() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.releaseResources(); } mDiffRequestManagers.clear(); } DiffRequestManagerHolder(@NonNull final Map<String, DiffRequestManager> managers); }
DiffRequestManagerHolder { void recycle() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.releaseResources(); } mDiffRequestManagers.clear(); } DiffRequestManagerHolder(@NonNull final Map<String, DiffRequestManager> managers); @NonNull static DiffRequestManagerHolder create(); @NonNull DiffRequestManager<D, A> with(@NonNull final A adapter); @NonNull DiffRequestManager<D, A> with(@NonNull final A adapter, @NonNull final String tag); @NonNull DiffRequestManager getDefaultManager(); @NonNull DiffRequestManager getManager(@NonNull final String tag); }
DiffRequestManagerHolder { void recycle() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.releaseResources(); } mDiffRequestManagers.clear(); } DiffRequestManagerHolder(@NonNull final Map<String, DiffRequestManager> managers); @NonNull static DiffRequestManagerHolder create(); @NonNull DiffRequestManager<D, A> with(@NonNull final A adapter); @NonNull DiffRequestManager<D, A> with(@NonNull final A adapter, @NonNull final String tag); @NonNull DiffRequestManager getDefaultManager(); @NonNull DiffRequestManager getManager(@NonNull final String tag);  }