@Test @BZ("1192912") public void testClearLogs() { kieSession = createKSession(HUMAN_TASK); processInstanceList = startProcess(kieSession, HUMAN_TASK_ID, 2); taskAuditService.clear(); Assertions.assertThat(getAllAuditTaskLogs()).hasSize(0); }
@Override public void tearDown() throws Exception { try { taskAuditService.clear(); taskAuditService.dispose(); abortProcess(kieSession, processInstanceList); } finally { super.tearDown(); } }
@Override public void setUp() throws Exception { super.setUp(); taskAuditService = new TaskJPAAuditService(getEmf()); taskAuditService.clear(); }