@Test public void shouldPopulate() { InventoryViewModel inventoryViewModel = new UnpackKitInventoryViewModel(product); inventoryViewModel.setKitExpectQuantity(20); inventoryViewModel.setChecked(false); inventoryViewModel.setType("Embalagem"); inventoryViewModel.setStockOnHand(123L); viewHolder.populate(inventoryViewModel, action1); assertThat(viewHolder.tvKitExpectedQuantity.getText().toString()).isEqualTo("20 expected"); }
public void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction) { this.viewModel = viewModel; lotListView.initLotListView(viewModel, getMovementChangedListener()); initViewHolderStyle(viewModel); setConfirmStockClickListener((UnpackKitInventoryViewModel) viewModel, setConfirmNoStockReceivedAction); validateIfShouldShowUpEmptyLotWarning(viewModel); updatePop(viewModel); }
UnpackKitWithLotViewHolder extends BaseViewHolder { public void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction) { this.viewModel = viewModel; lotListView.initLotListView(viewModel, getMovementChangedListener()); initViewHolderStyle(viewModel); setConfirmStockClickListener((UnpackKitInventoryViewModel) viewModel, setConfirmNoStockReceivedAction); validateIfShouldShowUpEmptyLotWarning(viewModel); updatePop(viewModel); } }
UnpackKitWithLotViewHolder extends BaseViewHolder { public void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction) { this.viewModel = viewModel; lotListView.initLotListView(viewModel, getMovementChangedListener()); initViewHolderStyle(viewModel); setConfirmStockClickListener((UnpackKitInventoryViewModel) viewModel, setConfirmNoStockReceivedAction); validateIfShouldShowUpEmptyLotWarning(viewModel); updatePop(viewModel); } UnpackKitWithLotViewHolder(View itemView); }
UnpackKitWithLotViewHolder extends BaseViewHolder { public void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction) { this.viewModel = viewModel; lotListView.initLotListView(viewModel, getMovementChangedListener()); initViewHolderStyle(viewModel); setConfirmStockClickListener((UnpackKitInventoryViewModel) viewModel, setConfirmNoStockReceivedAction); validateIfShouldShowUpEmptyLotWarning(viewModel); updatePop(viewModel); } UnpackKitWithLotViewHolder(View itemView); void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction); }
UnpackKitWithLotViewHolder extends BaseViewHolder { public void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction) { this.viewModel = viewModel; lotListView.initLotListView(viewModel, getMovementChangedListener()); initViewHolderStyle(viewModel); setConfirmStockClickListener((UnpackKitInventoryViewModel) viewModel, setConfirmNoStockReceivedAction); validateIfShouldShowUpEmptyLotWarning(viewModel); updatePop(viewModel); } UnpackKitWithLotViewHolder(View itemView); void populate(final InventoryViewModel viewModel, Action1 setConfirmNoStockReceivedAction);  }