@Test public void testAddedTask() { TaskEventSummary model = new TaskEventSummary( 1L, 1L, "ADDED", "exampleProcess", 3L, createDate(2017, 12, 15, 4, 59), "exampleProcess added this task" ); view.setValue(model); verify(logSummary).setModel(model); verify(logTime).setAttribute("data-original-title", "15/12/2017 04:59"); verify(logIcon).setAttribute("data-original-title", "Task added"); verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-cogs"); verify(logInfo).setTextContent("by process 'exampleProcess'"); verify(logTypeDesc).setTextContent("Task added"); }
@Override public void setValue(final TaskEventSummary model) { logSummary.setModel(model); final TaskEventType type = TaskEventType.valueOf(model.getType()); final String logString = constants.Task() + " " + translationService.format(type.getTypeTranslationId()).toLowerCase(); setLogTime(model.getLogTime()); setLogIcon(type, logString); setLogInfo(type, model); setLogType(logString); }
TaskLogItemView extends AbstractLogItemView<TaskLogsPresenter> implements TakesValue<TaskEventSummary>,
                                                                                       IsElement { @Override public void setValue(final TaskEventSummary model) { logSummary.setModel(model); final TaskEventType type = TaskEventType.valueOf(model.getType()); final String logString = constants.Task() + " " + translationService.format(type.getTypeTranslationId()).toLowerCase(); setLogTime(model.getLogTime()); setLogIcon(type, logString); setLogInfo(type, model); setLogType(logString); } }
TaskLogItemView extends AbstractLogItemView<TaskLogsPresenter> implements TakesValue<TaskEventSummary>,
                                                                                       IsElement { @Override public void setValue(final TaskEventSummary model) { logSummary.setModel(model); final TaskEventType type = TaskEventType.valueOf(model.getType()); final String logString = constants.Task() + " " + translationService.format(type.getTypeTranslationId()).toLowerCase(); setLogTime(model.getLogTime()); setLogIcon(type, logString); setLogInfo(type, model); setLogType(logString); }  }
TaskLogItemView extends AbstractLogItemView<TaskLogsPresenter> implements TakesValue<TaskEventSummary>,
                                                                                       IsElement { @Override public void setValue(final TaskEventSummary model) { logSummary.setModel(model); final TaskEventType type = TaskEventType.valueOf(model.getType()); final String logString = constants.Task() + " " + translationService.format(type.getTypeTranslationId()).toLowerCase(); setLogTime(model.getLogTime()); setLogIcon(type, logString); setLogInfo(type, model); setLogType(logString); }  @Override TaskEventSummary getValue(); @Override void setValue(final TaskEventSummary model); }
TaskLogItemView extends AbstractLogItemView<TaskLogsPresenter> implements TakesValue<TaskEventSummary>,
                                                                                       IsElement { @Override public void setValue(final TaskEventSummary model) { logSummary.setModel(model); final TaskEventType type = TaskEventType.valueOf(model.getType()); final String logString = constants.Task() + " " + translationService.format(type.getTypeTranslationId()).toLowerCase(); setLogTime(model.getLogTime()); setLogIcon(type, logString); setLogInfo(type, model); setLogType(logString); }  @Override TaskEventSummary getValue(); @Override void setValue(final TaskEventSummary model);  }