use of org.kie.internal.task.query.AuditTaskQueryBuilder in project jbpm by kiegroup.
the class TaskAuditQueryBuilderCoverageTest method auditTaskQueryBuilderCoverageTest.
@Test
public void auditTaskQueryBuilderCoverageTest() {
AuditTaskQueryBuilder queryBuilder = auditService.auditTaskQuery();
Class builderClass = AuditTaskQueryBuilder.class;
queryBuilderCoverageTest(queryBuilder, builderClass, inputFiller);
}
use of org.kie.internal.task.query.AuditTaskQueryBuilder in project jbpm by kiegroup.
the class AuditTaskDeleteTest method testTaskAuditServiceClear.
@Test
public void testTaskAuditServiceClear() {
AuditTaskQueryBuilder queryBuilder = this.auditTaskQuery();
List<AuditTask> tasks = queryBuilder.taskId(taskTestData[4].getId()).build().getResultList();
assertEquals(1, tasks.size());
queryBuilder.clear();
List<AuditTask> data = this.auditTaskQuery().build().getResultList();
assertEquals(10, data.size());
this.clear();
data = this.auditTaskQuery().build().getResultList();
assertEquals(0, data.size());
}
Aggregations