@Test public void shouldHaveTheSameNumberOfDefaultElementsPlusTwoHeaders() throws Exception { initialInventoryPresenter.getDefaultViewModelList().addAll(newArrayList(models.get(1L),models.get(2L),models.get(3L),models.get(4L))); initialInventoryPresenter.filterViewModels(""); assertThat(initialInventoryPresenter.getInventoryViewModelList().size(), is(6)); }
public void filterViewModels(final String keyword) { filterViewModelsByProductFullName(keyword); removeHeaders(); addHeaders(checkIfNonBasicProductsExists()); }
InitialInventoryPresenter extends InventoryPresenter { public void filterViewModels(final String keyword) { filterViewModelsByProductFullName(keyword); removeHeaders(); addHeaders(checkIfNonBasicProductsExists()); } }
InitialInventoryPresenter extends InventoryPresenter { public void filterViewModels(final String keyword) { filterViewModelsByProductFullName(keyword); removeHeaders(); addHeaders(checkIfNonBasicProductsExists()); }  }
InitialInventoryPresenter extends InventoryPresenter { public void filterViewModels(final String keyword) { filterViewModelsByProductFullName(keyword); removeHeaders(); addHeaders(checkIfNonBasicProductsExists()); }  @Override Observable<List<InventoryViewModel>> loadInventory(); Observable<List<InventoryViewModel>> loadInventoryWithBasicProducts(); Observable<Object> initStockCardObservable(); void addNonBasicProductsToInventory(List<Product> nonBasicProducts); void filterViewModels(final String keyword); void removeNonBasicProductElement(InventoryViewModel model); }
InitialInventoryPresenter extends InventoryPresenter { public void filterViewModels(final String keyword) { filterViewModelsByProductFullName(keyword); removeHeaders(); addHeaders(checkIfNonBasicProductsExists()); }  @Override Observable<List<InventoryViewModel>> loadInventory(); Observable<List<InventoryViewModel>> loadInventoryWithBasicProducts(); Observable<Object> initStockCardObservable(); void addNonBasicProductsToInventory(List<Product> nonBasicProducts); void filterViewModels(final String keyword); void removeNonBasicProductElement(InventoryViewModel model); static final String EMPTY_STRING; }