SectionedRecyclerViewAdapterV2Compat extends SectionedRecyclerViewAdapter { public void notifyItemRemovedFromSection(final Section section, final int position) { getAdapterForSection(section).notifyItemRemoved(position); }  int getFooterPositionInAdapter(final Section section); int getFooterPositionInAdapter(final String tag); int getHeaderPositionInAdapter(final Section section); int getHeaderPositionInAdapter(final String tag); int getPositionInAdapter(final Section section, final int position); int getPositionInAdapter(final String tag, final int position); int getSectionPosition(final Section section); int getSectionPosition(final String tag); void notifyAllItemsChangedInSection(final Section section); void notifyAllItemsChangedInSection(final String tag); void notifyAllItemsInsertedInSection(final Section section); void notifyAllItemsInsertedInSection(final String tag); void notifyFooterChangedInSection(final Section section); void notifyFooterChangedInSection(final String tag); void notifyFooterInsertedInSection(final Section section); void notifyFooterInsertedInSection(final String tag); void notifyFooterRemovedFromSection(final Section section); void notifyFooterRemovedFromSection(final String tag); void notifyHeaderChangedInSection(final Section section); void notifyHeaderChangedInSection(final String tag); void notifyHeaderInsertedInSection(final Section section); void notifyHeaderInsertedInSection(final String tag); void notifyHeaderRemovedFromSection(final Section section); void notifyHeaderRemovedFromSection(final String tag); void notifyItemChangedInSection(final Section section, final int position); void notifyItemChangedInSection(final String tag, final int position); void notifyItemInsertedInSection(final Section section, final int position); void notifyItemInsertedInSection(final String tag, final int position); void notifyItemMovedInSection(final Section section, final int fromPosition, final int toPosition); void notifyItemMovedInSection(final String tag, final int fromPosition, final int toPosition); void notifyItemRangeChangedInSection(final Section section, final int positionStart, final int itemCount); void notifyItemRangeChangedInSection(final Section section, final int positionStart, final int itemCount, final Object payload); void notifyItemRangeChangedInSection(final String tag, final int positionStart, final int itemCount); void notifyItemRangeChangedInSection(final String tag, final int positionStart, final int itemCount, final Object payload); void notifyItemRangeInsertedInSection(final Section section, final int positionStart, final int itemCount); void notifyItemRangeInsertedInSection(final String tag, final int positionStart, final int itemCount); void notifyItemRangeRemovedFromSection(final Section section, final int positionStart, final int itemCount); void notifyItemRangeRemovedFromSection(final String tag, final int positionStart, final int itemCount); void notifyItemRemovedFromSection(final Section section, final int position); void notifyItemRemovedFromSection(final String tag, final int position); void notifyNotLoadedStateChanged(final Section section, final Section.State previousState); void notifyNotLoadedStateChanged(final String tag, final Section.State previousState); void notifySectionChangedToInvisible(final Section section, final int previousSectionPosition); void notifySectionChangedToInvisible(final String tag, final int previousSectionPosition); void notifySectionChangedToVisible(final Section section); void notifySectionChangedToVisible(final String tag); void notifyStateChangedFromLoaded(final Section section, final int previousContentItemsCount); void notifyStateChangedFromLoaded(final String tag, final int previousContentItemsCount); void notifyStateChangedToLoaded(final Section section, final Section.State previousState); void notifyStateChangedToLoaded(final String tag, final Section.State previousState);  }
@Test public void givenSection_whenNotifyItemRemovedFromSection_thenCallsNewClass() { final int position = 10; cut.notifyItemRemovedFromSection(section, position); verify(sectionAdapter).notifyItemRemoved(position); }
@Test public void givenTag_whenNotifyItemRemovedFromSection_thenCallsNewClass() { final int position = 10; cut.notifyItemRemovedFromSection(tag, position); verify(sectionAdapter).notifyItemRemoved(position); }