@Test public void testRemoveColumnMetaFromColumnsForAddDomainSpecifColumns() { GridGlobalPreferences gridPreferences = new GridGlobalPreferences("test", view.getInitColumns(), view.getBannedColumns()); ListTable<TaskSummary> extendedPagedTable = new ListTable<TaskSummary>(gridPreferences); when(view.getListGrid()).thenReturn(extendedPagedTable); extendedPagedTable.getGridPreferencesStore().getColumnPreferences().add(new GridColumnPreference("Extra", -1, "")); Set<String> set = Sets.newHashSet("Extra"); view.initColumns(extendedPagedTable); assertThat(extendedPagedTable.getColumnMetaList().size()).isEqualTo(19); view.addDomainSpecifColumns(set); assertThat(set.size()).isEqualTo(0); }
@Override public List<String> getInitColumns() { return Arrays.asList(COL_ID_SELECT, COLUMN_NAME, COLUMN_PROCESS_ID, COLUMN_STATUS, COLUMN_CREATED_ON, COL_ID_ACTIONS); }
TaskListViewImpl extends AbstractTaskListView<TaskListPresenter> { @Override public List<String> getInitColumns() { return Arrays.asList(COL_ID_SELECT, COLUMN_NAME, COLUMN_PROCESS_ID, COLUMN_STATUS, COLUMN_CREATED_ON, COL_ID_ACTIONS); } }
TaskListViewImpl extends AbstractTaskListView<TaskListPresenter> { @Override public List<String> getInitColumns() { return Arrays.asList(COL_ID_SELECT, COLUMN_NAME, COLUMN_PROCESS_ID, COLUMN_STATUS, COLUMN_CREATED_ON, COL_ID_ACTIONS); }  }
TaskListViewImpl extends AbstractTaskListView<TaskListPresenter> { @Override public List<String> getInitColumns() { return Arrays.asList(COL_ID_SELECT, COLUMN_NAME, COLUMN_PROCESS_ID, COLUMN_STATUS, COLUMN_CREATED_ON, COL_ID_ACTIONS); }  @Override List<String> getInitColumns(); }
TaskListViewImpl extends AbstractTaskListView<TaskListPresenter> { @Override public List<String> getInitColumns() { return Arrays.asList(COL_ID_SELECT, COLUMN_NAME, COLUMN_PROCESS_ID, COLUMN_STATUS, COLUMN_CREATED_ON, COL_ID_ACTIONS); }  @Override List<String> getInitColumns();  }