ProcessInstanceListBasicFiltersPresenter extends BasicFiltersPresenter { protected void addSLAComplianceFilter() { view.addSelectFilter(constants.SlaCompliance(), SlaStatusConverter.getSLAComplianceAliasMap(), f -> addSearchFilter(f, equalsTo(COLUMN_SLA_COMPLIANCE, f.getValue()))); }  @Override String getDataSetId(); @Override void loadFilters();  }
@Test public void testSlaComplianceFilters() { presenter.addSLAComplianceFilter(); org.jbpm.workbench.common.client.resources.i18n.Constants commonConstants = org.jbpm.workbench.common.client.resources.i18n.Constants.INSTANCE; ArgumentCaptor<Map> slaDescriptionsCaptors = ArgumentCaptor.forClass(Map.class); verify(getView()).addSelectFilter(anyString(), slaDescriptionsCaptors.capture(), any()); final Map<String, String> slaDescriptions = slaDescriptionsCaptors.getValue(); assertThat(slaDescriptions).containsExactly( immutableEntry(String.valueOf(ProcessInstance.SLA_NA), commonConstants.INSTANCE.SlaNA()), immutableEntry(String.valueOf(ProcessInstance.SLA_PENDING), commonConstants.SlaPending()), immutableEntry(String.valueOf(ProcessInstance.SLA_MET), commonConstants.SlaMet()), immutableEntry(String.valueOf(ProcessInstance.SLA_VIOLATED), commonConstants.SlaViolated()), immutableEntry(String.valueOf(ProcessInstance.SLA_ABORTED), commonConstants.SlaAborted())); }