use of org.camunda.bpm.engine.history.HistoricDetailQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailFormPropertyQueryTest method testQueryWithoutTenantId.
public void testQueryWithoutTenantId() {
HistoricDetailQuery query = historyService.createHistoricDetailQuery().formFields();
assertThat(query.count(), is(2L));
}
use of org.camunda.bpm.engine.history.HistoricDetailQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailVariableUpdateQueryTest method testQueryByTenantIds.
public void testQueryByTenantIds() {
HistoricDetailQuery query = historyService.createHistoricDetailQuery().variableUpdates().tenantIdIn(TENANT_ONE, TENANT_TWO);
assertThat(query.count(), is(4L));
}
use of org.camunda.bpm.engine.history.HistoricDetailQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailVariableUpdateQueryTest method testQueryAuthenticatedTenants.
public void testQueryAuthenticatedTenants() {
identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE, TENANT_TWO));
HistoricDetailQuery query = historyService.createHistoricDetailQuery();
assertThat(query.count(), is(4L));
assertThat(query.tenantIdIn(TENANT_ONE).count(), is(2L));
assertThat(query.tenantIdIn(TENANT_TWO).count(), is(2L));
}
use of org.camunda.bpm.engine.history.HistoricDetailQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailVariableUpdateQueryTest method testQueryDisabledTenantCheck.
public void testQueryDisabledTenantCheck() {
processEngineConfiguration.setTenantCheckEnabled(false);
identityService.setAuthentication("user", null, null);
HistoricDetailQuery query = historyService.createHistoricDetailQuery();
assertThat(query.count(), is(4L));
}
use of org.camunda.bpm.engine.history.HistoricDetailQuery in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailVariableUpdateQueryTest method testQueryByNonExistingTenantId.
public void testQueryByNonExistingTenantId() {
HistoricDetailQuery query = historyService.createHistoricDetailQuery().variableUpdates().tenantIdIn("nonExisting");
assertThat(query.count(), is(0L));
}
Aggregations