@Test public void testAttachToAdapter() { final AdapterModule.ModuleAdapter mockAdapter = mock(AdapterModule.ModuleAdapter.class); final AdapterModule mockModule = mock(AdapterModule.class); mockModule.attachToAdapter(mockAdapter); verify(mockModule).onAttachedToAdapter(mockAdapter); verifyNoMoreInteractions(mockModule); verifyZeroInteractions(mockAdapter); }
public final void attachToAdapter(@NonNull final ModuleAdapter adapter) { onAttachedToAdapter(this.adapter = adapter); }
AdapterModule { public final void attachToAdapter(@NonNull final ModuleAdapter adapter) { onAttachedToAdapter(this.adapter = adapter); } }
AdapterModule { public final void attachToAdapter(@NonNull final ModuleAdapter adapter) { onAttachedToAdapter(this.adapter = adapter); }  }
AdapterModule { public final void attachToAdapter(@NonNull final ModuleAdapter adapter) { onAttachedToAdapter(this.adapter = adapter); }  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 { public final void attachToAdapter(@NonNull final ModuleAdapter adapter) { onAttachedToAdapter(this.adapter = adapter); }  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);  }