use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseServiceTest method testCreateCaseExecutionQuery.
public void testCreateCaseExecutionQuery() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
assertNotNull(query);
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyCaseExecutionQueryTest method testQueryByNonExistingTenantId.
public void testQueryByNonExistingTenantId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn("nonExisting");
assertThat(query.count(), is(0L));
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyCaseExecutionQueryTest method testQueryByTenantId.
public void testQueryByTenantId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_ONE);
assertThat(query.count(), is(2L));
query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_TWO);
assertThat(query.count(), is(2L));
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyCaseExecutionQueryTest method testQueryByExecutionsWithoutTenantId.
public void testQueryByExecutionsWithoutTenantId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery().withoutTenantId();
assertThat(query.count(), is(2L));
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyCaseExecutionQueryTest method testQueryByTenantIds.
public void testQueryByTenantIds() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_ONE, TENANT_TWO);
assertThat(query.count(), is(4L));
}
Aggregations