TaskDetailsViewImpl extends Composite implements TaskDetailsPresenter.TaskDetailsView { @Override public void setSlaCompliance(final Integer slaCompliance) { slaComplianceText.setText(new SlaStatusConverter().toWidgetValue(slaCompliance)); }  @Override void init(TaskDetailsPresenter presenter); @EventHandler("updateTaskButton") void updateTaskButton(ClickEvent e); @Override void setTaskDescription(final String text); @Override void setSelectedDate(final Date date); @Override void setUser(final String user); @Override void setTaskStatus(final String status); @Override void setSlaCompliance(final Integer slaCompliance); @Override void setTaskPriority(final String priority); @Override void setTaskDescriptionEnabled(final Boolean enabled); @Override void setDueDateEnabled(final Boolean enabled); @Override void setTaskPriorityEnabled(final Boolean enabled); @Override void setProcessInstanceId(String piid); @Override void setProcessId(String pid); @Override void setUpdateTaskVisible(final Boolean enabled); @Override void displayNotification(String text); @Inject
    @DataField
    public Paragraph userText; @Inject
    @DataField("taskStatusText")
    public Paragraph taskStatusText; @Inject
    @DataField
    public TextArea taskDescriptionTextArea; @Inject
    @DataField
    public Select taskPriorityListBox; @Inject
    @DataField("processInstanceIdText")
    public Paragraph processInstanceIdText; @Inject
    @DataField("processIdText")
    public Paragraph processIdText; @Inject
    @DataField("slaComplianceText")
    public Paragraph slaComplianceText; @Inject
    @DataField
    public Button updateTaskButton; @Inject
    @DataField
    public FormLabel taskStatusLabel; @Inject
    @DataField
    public FormLabel userLabel; @Inject
    @DataField
    public FormLabel dueDateLabel; @Inject
    @DataField
    public FormLabel taskPriorityLabel; @Inject
    @DataField
    public FormLabel taskDescriptionLabel; @Inject
    @DataField
    public FormLabel processInstanceIdLabel; @Inject
    @DataField
    public FormLabel processIdLabel; @Inject
    @DataField
    public FormLabel slaComplianceLabel; @Inject
    @DataField("date-filters-input")
    public FlowPanel dateRangePickerInput; @Inject
    @DataField("dueDateText")
    public Paragraph dueDateText; }
@Test public void setSlaComplianceTextTest() { view.setSlaCompliance(ProcessInstance.SLA_PENDING); verify(slaComplianceText).setText(Constants.INSTANCE.SlaPending()); }