@Test public void testUpdatedTask() { TaskEventSummary model = new TaskEventSummary( 2L, 2L, "UPDATED", "Maria", 3L, createDate(2016, 2, 5, 15, 2), "Maria updated this task" ); view.setValue(model); verify(logSummary).setModel(model); verify(logTime).setAttribute("data-original-title", "05/02/2016 15:02"); verify(logIcon).setAttribute("data-original-title", "Task updated"); verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user"); verify(logInfo).setTextContent("by user Maria (Maria updated this task)"); verify(logTypeDesc).setTextContent("Task updated"); }
@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);  }