示例#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);
  }
示例#2
0
 @Override
 public void tearDown() throws Exception {
   try {
     taskAuditService.clear();
     taskAuditService.dispose();
     abortProcess(kieSession, processInstanceList);
   } finally {
     super.tearDown();
   }
 }
示例#3
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   taskAuditService = new TaskJPAAuditService(getEmf());
   taskAuditService.clear();
 }