@Test public void testSingleRowHeaderPresenter() { RowHeaderPresenter p = new RowHeaderPresenter(); RowHeaderPresenter.ViewHolder vh = new RowHeaderPresenter.ViewHolder( new RowHeaderView(mContext)); HeaderItem item = new HeaderItem(""); p.onBindViewHolder(vh, new Row(item)); assertEquals("Header visibility", View.VISIBLE, vh.view.getVisibility()); }
public abstract void onBindViewHolder(ViewHolder viewHolder, Object item);
Presenter implements FacetProvider { public abstract void onBindViewHolder(ViewHolder viewHolder, Object item); }
Presenter implements FacetProvider { public abstract void onBindViewHolder(ViewHolder viewHolder, Object item);  }
Presenter implements FacetProvider { public abstract void onBindViewHolder(ViewHolder viewHolder, Object item);  abstract ViewHolder onCreateViewHolder(ViewGroup parent); abstract void onBindViewHolder(ViewHolder viewHolder, Object item); void onBindViewHolder(ViewHolder viewHolder, Object item, List<Object> payloads); abstract void onUnbindViewHolder(ViewHolder viewHolder); void onViewAttachedToWindow(ViewHolder holder); void onViewDetachedFromWindow(ViewHolder holder); void setOnClickListener(ViewHolder holder, View.OnClickListener listener); @Override final Object getFacet(Class<?> facetClass); final void setFacet(Class<?> facetClass, Object facetImpl); }
Presenter implements FacetProvider { public abstract void onBindViewHolder(ViewHolder viewHolder, Object item);  abstract ViewHolder onCreateViewHolder(ViewGroup parent); abstract void onBindViewHolder(ViewHolder viewHolder, Object item); void onBindViewHolder(ViewHolder viewHolder, Object item, List<Object> payloads); abstract void onUnbindViewHolder(ViewHolder viewHolder); void onViewAttachedToWindow(ViewHolder holder); void onViewDetachedFromWindow(ViewHolder holder); void setOnClickListener(ViewHolder holder, View.OnClickListener listener); @Override final Object getFacet(Class<?> facetClass); final void setFacet(Class<?> facetClass, Object facetImpl);  }