예제 #1
0
        public virtual void testAutoDeployWithoutTenantId()
        {
            createAppContext(CTX_CMMN_BPMN_TOGETHER_PATH);

            DeploymentQuery deploymentQuery = repositoryService.createDeploymentQuery();

            assertEquals(1, deploymentQuery.withoutTenantId().count());
        }
예제 #2
0
        public virtual void testQueryAuthenticatedTenants()
        {
            identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE, TENANT_TWO));

            DeploymentQuery query = repositoryService.createDeploymentQuery();

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