AsyncCaseInstanceAuditEventProducer implements CaseEventListener, Cacheable { @Override public void afterCaseReopen(CaseReopenEvent event) { List<CaseFileData> logs = updateCaseFileItems(event, event.getData(), event.getCaseId(), event.getCaseDefinitionId(), event.getUser()); sendMessage(AFTER_CASE_REOPEN_EVENT_TYPE, new AuditCaseInstanceData(event.getProcessInstanceId(), event.getCaseId(), logs, null), 4); } AsyncCaseInstanceAuditEventProducer(); ConnectionFactory getConnectionFactory(); void setConnectionFactory(ConnectionFactory connectionFactory); Queue getQueue(); void setQueue(Queue queue); boolean isTransacted(); void setTransacted(boolean transacted); @Override void afterCaseStarted(CaseStartEvent event); @Override void afterCaseReopen(CaseReopenEvent event); @Override void afterCaseRoleAssignmentAdded(CaseRoleAssignmentEvent event); @Override void afterCaseRoleAssignmentRemoved(CaseRoleAssignmentEvent event); @Override void afterCaseDataAdded(CaseDataEvent event); @Override void afterCaseDataRemoved(CaseDataEvent event); @Override void close();  }
@Test public void testCaseReopen() throws JMSException { CaseFileInstanceImpl caseFile = new CaseFileInstanceImpl("TEST-01", "case"); CaseReopenEvent event = new CaseReopenEvent("user", "TEST-01", caseFile, "test", "case", new HashMap<>()); logProducer.afterCaseReopen(event); verify(message, times(1)).setStringProperty(eq("LogType"), eq("Case")); verify(message, times(1)).setIntProperty(eq("EventType"), eq(AFTER_CASE_REOPEN_EVENT_TYPE)); verify(producer, times(1)).setPriority(eq(4)); verify(producer, times(1)).send(eq(message)); }