@Test public void testNotifyAdapter() { final AdapterModule.ModuleAdapter mockAdapter = mock(AdapterModule.ModuleAdapter.class); final AdapterModule module = new TestModule(); module.attachToAdapter(mockAdapter); module.notifyAdapter(); verify(mockAdapter).notifyDataSetChanged(); verifyNoMoreInteractions(mockAdapter); }
protected final void notifyAdapter() { if (isAdapterNotificationEnabled() && adapter != null) adapter.notifyDataSetChanged(); }
AdapterModule { protected final void notifyAdapter() { if (isAdapterNotificationEnabled() && adapter != null) adapter.notifyDataSetChanged(); } }
AdapterModule { protected final void notifyAdapter() { if (isAdapterNotificationEnabled() && adapter != null) adapter.notifyDataSetChanged(); }  }
AdapterModule { protected final void notifyAdapter() { if (isAdapterNotificationEnabled() && adapter != null) adapter.notifyDataSetChanged(); }  final void attachToAdapter(@NonNull final ModuleAdapter adapter); void setAdapterNotificationEnabled(final boolean enabled); boolean isAdapterNotificationEnabled(); boolean requiresStateSaving(); @CallSuper @NonNull Parcelable saveInstanceState(); @CallSuper void restoreInstanceState(@NonNull Parcelable savedState); }
AdapterModule { protected final void notifyAdapter() { if (isAdapterNotificationEnabled() && adapter != null) adapter.notifyDataSetChanged(); }  final void attachToAdapter(@NonNull final ModuleAdapter adapter); void setAdapterNotificationEnabled(final boolean enabled); boolean isAdapterNotificationEnabled(); boolean requiresStateSaving(); @CallSuper @NonNull Parcelable saveInstanceState(); @CallSuper void restoreInstanceState(@NonNull Parcelable savedState);  }