Пример #1
0
        public virtual void testQueryAuthenticatedTenants()
        {
            identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE, TENANT_TWO));

            CaseExecutionQuery query = caseService.createCaseExecutionQuery();

            assertThat(query.count(), @is(6L));
            assertThat(query.tenantIdIn(TENANT_ONE).count(), @is(2L));
            assertThat(query.tenantIdIn(TENANT_TWO).count(), @is(2L));
            assertThat(query.withoutTenantId().count(), @is(2L));
        }