Search in sources :

Example 1 with AuditTaskQueryBuilder

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);
}
Also used : AfterClass(org.junit.AfterClass) BeforeClass(org.junit.BeforeClass) AuditTaskQueryBuilder(org.kie.internal.task.query.AuditTaskQueryBuilder) QueryBuilderCoverageTestUtil.queryBuilderCoverageTest(org.jbpm.query.QueryBuilderCoverageTestUtil.queryBuilderCoverageTest) Test(org.junit.Test) HumanTaskServicesBaseTest(org.jbpm.services.task.HumanTaskServicesBaseTest)

Example 2 with AuditTaskQueryBuilder

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());
}
Also used : AuditTaskQueryBuilder(org.kie.internal.task.query.AuditTaskQueryBuilder) AuditTask(org.kie.internal.task.api.AuditTask) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 AuditTaskQueryBuilder (org.kie.internal.task.query.AuditTaskQueryBuilder)2 QueryBuilderCoverageTestUtil.queryBuilderCoverageTest (org.jbpm.query.QueryBuilderCoverageTestUtil.queryBuilderCoverageTest)1 HumanTaskServicesBaseTest (org.jbpm.services.task.HumanTaskServicesBaseTest)1 AfterClass (org.junit.AfterClass)1 BeforeClass (org.junit.BeforeClass)1 AuditTask (org.kie.internal.task.api.AuditTask)1