@Test public void configurationChanged_ClearsCurrentAdapters() { mDiffRequestManagerHolder.configurationChanged(); then(mDiffRequestManager).should().swapAdapter(null); }
void configurationChanged() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.swapAdapter(null); } }
DiffRequestManagerHolder { void configurationChanged() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.swapAdapter(null); } } }
DiffRequestManagerHolder { void configurationChanged() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.swapAdapter(null); } } DiffRequestManagerHolder(@NonNull final Map<String, DiffRequestManager> managers); }
DiffRequestManagerHolder { void configurationChanged() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.swapAdapter(null); } } 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 configurationChanged() { for (DiffRequestManager manager : mDiffRequestManagers.values()) { manager.swapAdapter(null); } } 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);  }