@Test public void onUnbind() { assertTrue(mRecyclerView.getChildCount() > 0); mRecyclerView.scrollBy(0, mRecyclerView.getChildAt(0).getHeight()); Mockito.verify(mPresenter, times(1)) .onUnbindViewHolder(any(Presenter.ViewHolder.class)); }
protected void onUnbind(ViewHolder viewHolder) { }
ItemBridgeAdapter extends RecyclerView.Adapter implements FacetProviderAdapter { protected void onUnbind(ViewHolder viewHolder) { } }
ItemBridgeAdapter extends RecyclerView.Adapter implements FacetProviderAdapter { protected void onUnbind(ViewHolder viewHolder) { } ItemBridgeAdapter(ObjectAdapter adapter, PresenterSelector presenterSelector);  ItemBridgeAdapter(ObjectAdapter adapter);  ItemBridgeAdapter(); }
ItemBridgeAdapter extends RecyclerView.Adapter implements FacetProviderAdapter { protected void onUnbind(ViewHolder viewHolder) { } ItemBridgeAdapter(ObjectAdapter adapter, PresenterSelector presenterSelector);  ItemBridgeAdapter(ObjectAdapter adapter);  ItemBridgeAdapter(); void setAdapter(ObjectAdapter adapter); void setPresenter(PresenterSelector presenterSelector); void setWrapper(Wrapper wrapper); Wrapper getWrapper(); void clear(); void setPresenterMapper(ArrayList<Presenter> presenters); ArrayList<Presenter> getPresenterMapper(); @Override int getItemCount(); @Override int getItemViewType(int position); @Override final RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType); void setAdapterListener(AdapterListener listener); @Override final void onBindViewHolder(RecyclerView.ViewHolder holder, int position); @Override final void onBindViewHolder(RecyclerView.ViewHolder holder, int position,
            List payloads); @Override final void onViewRecycled(RecyclerView.ViewHolder holder); @Override final boolean onFailedToRecycleView(RecyclerView.ViewHolder holder); @Override final void onViewAttachedToWindow(RecyclerView.ViewHolder holder); @Override final void onViewDetachedFromWindow(RecyclerView.ViewHolder holder); @Override long getItemId(int position); @Override FacetProvider getFacetProvider(int type); }
ItemBridgeAdapter extends RecyclerView.Adapter implements FacetProviderAdapter { protected void onUnbind(ViewHolder viewHolder) { } ItemBridgeAdapter(ObjectAdapter adapter, PresenterSelector presenterSelector);  ItemBridgeAdapter(ObjectAdapter adapter);  ItemBridgeAdapter(); void setAdapter(ObjectAdapter adapter); void setPresenter(PresenterSelector presenterSelector); void setWrapper(Wrapper wrapper); Wrapper getWrapper(); void clear(); void setPresenterMapper(ArrayList<Presenter> presenters); ArrayList<Presenter> getPresenterMapper(); @Override int getItemCount(); @Override int getItemViewType(int position); @Override final RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType); void setAdapterListener(AdapterListener listener); @Override final void onBindViewHolder(RecyclerView.ViewHolder holder, int position); @Override final void onBindViewHolder(RecyclerView.ViewHolder holder, int position,
            List payloads); @Override final void onViewRecycled(RecyclerView.ViewHolder holder); @Override final boolean onFailedToRecycleView(RecyclerView.ViewHolder holder); @Override final void onViewAttachedToWindow(RecyclerView.ViewHolder holder); @Override final void onViewDetachedFromWindow(RecyclerView.ViewHolder holder); @Override long getItemId(int position); @Override FacetProvider getFacetProvider(int type);  }