@Test public void testRenameProcessVariableForAddDomainSpecifColumns() { GridGlobalPreferences gridPreferences = new GridGlobalPreferences("test", view.getInitColumns(), view.getBannedColumns()); ListTable<TaskSummary> extendedPagedTable = new ListTable<TaskSummary>(gridPreferences); when(view.getListGrid()).thenReturn(extendedPagedTable); Set<String> set = Collections.singleton("Id"); view.initColumns(extendedPagedTable); assertThat(extendedPagedTable.getColumnMetaList().stream()).extracting(c -> c.getCaption()).hasSize(18).doesNotContain("Var_Id"); view.addDomainSpecifColumns(set); assertThat(extendedPagedTable.getColumnMetaList().stream()).extracting(c -> c.getCaption()).hasSize(19).containsOnlyOnce("Var_Id"); }
@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();  }