@Test public void testSetAdapterNotificationEnabled() { final AdapterModule.ModuleAdapter mockAdapter = mock(AdapterModule.ModuleAdapter.class); final AdapterModule module = new TestModule(); module.attachToAdapter(mockAdapter); module.setAdapterNotificationEnabled(false); assertThat(module.isAdapterNotificationEnabled(), is(false)); module.setAdapterNotificationEnabled(true); assertThat(module.isAdapterNotificationEnabled(), is(true)); }
public void setAdapterNotificationEnabled(final boolean enabled) { this.notificationEnabled = enabled; }
AdapterModule { public void setAdapterNotificationEnabled(final boolean enabled) { this.notificationEnabled = enabled; } }
AdapterModule { public void setAdapterNotificationEnabled(final boolean enabled) { this.notificationEnabled = enabled; }  }
AdapterModule { public void setAdapterNotificationEnabled(final boolean enabled) { this.notificationEnabled = enabled; }  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 void setAdapterNotificationEnabled(final boolean enabled) { this.notificationEnabled = enabled; }  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);  }