KitStockCardListAdapter extends StockCardListAdapter { @Override protected StockCardViewHolder createViewHolder(View view) { return new KitStockCardViewHolder(view, listener); } KitStockCardListAdapter(List<InventoryViewModel> inventoryViewModel, StockCardViewHolder.OnItemViewClickListener listener);   }
@Test public void shouldUseKitStockCardViewHolder() throws Exception { KitStockCardListAdapter kitStockCardListAdapter = new KitStockCardListAdapter(new ArrayList<InventoryViewModel>(), null); View view = LayoutInflater.from(RuntimeEnvironment.application) .inflate(R.layout.item_stockcard, null, false); assertThat(kitStockCardListAdapter.createViewHolder(view)).isInstanceOf(KitStockCardViewHolder.class); }