@Test public void testNullNotShown() { DisplayerSettings departmentList = DisplayerSettingsFactory.newSelectorSettings() .dataset(EXPENSES) .group(COLUMN_DEPARTMENT) .column(COLUMN_DEPARTMENT) .column(COLUMN_ID, AggregateFunctionType.COUNT) .buildSettings(); DataSet expensesDataSet = clientDataSetManager.getDataSet(EXPENSES); int column = expensesDataSet.getColumnIndex(expensesDataSet.getColumnById(COLUMN_DEPARTMENT)); expensesDataSet.setValueAt(0, column, null); SelectorDropDownDisplayer presenter = createSelectorDisplayer(departmentList); SelectorDropDownDisplayer.View view = presenter.getView(); presenter.draw(); verify(view, times(5)).addItem(any()); verify(view, never()).addItem(null); }
@Override public View getView() { return view; }
SelectorDropDownDisplayer extends AbstractErraiDisplayer<SelectorDropDownDisplayer.View> { @Override public View getView() { return view; } }
SelectorDropDownDisplayer extends AbstractErraiDisplayer<SelectorDropDownDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorDropDownDisplayer(View view, SyncBeanManager beanManager); }
SelectorDropDownDisplayer extends AbstractErraiDisplayer<SelectorDropDownDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorDropDownDisplayer(View view, SyncBeanManager beanManager); @Override View getView(); @Override void close(); @Override DisplayerConstraints createDisplayerConstraints(); String getFirstColumnId(); String getFirstColumnName(); String formatItemList(List<String> itemList); String formatItemList(List<String> itemList, int maxWidth); }
SelectorDropDownDisplayer extends AbstractErraiDisplayer<SelectorDropDownDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorDropDownDisplayer(View view, SyncBeanManager beanManager); @Override View getView(); @Override void close(); @Override DisplayerConstraints createDisplayerConstraints(); String getFirstColumnId(); String getFirstColumnName(); String formatItemList(List<String> itemList); String formatItemList(List<String> itemList, int maxWidth);  }