Beispiel #1
0
  @Test
  @BZ("1192912")
  public void testClearLogs() {
    kieSession = createKSession(HUMAN_TASK);
    processInstanceList = startProcess(kieSession, HUMAN_TASK_ID, 2);

    taskAuditService.clear();
    Assertions.assertThat(getAllAuditTaskLogs()).hasSize(0);
  }
Beispiel #2
0
 @Override
 public void tearDown() throws Exception {
   try {
     taskAuditService.clear();
     taskAuditService.dispose();
     abortProcess(kieSession, processInstanceList);
   } finally {
     super.tearDown();
   }
 }
Beispiel #3
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   taskAuditService = new TaskJPAAuditService(getEmf());
   taskAuditService.clear();
 }