Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void deployProcesses()
        public virtual void deployProcesses()
        {
            ProcessDefinition sharedDefinition  = testHelper.deployAndGetDefinition(ProcessModels.ONE_TASK_PROCESS);
            ProcessDefinition tenant1Definition = testHelper.deployForTenantAndGetDefinition(TENANT_ONE, ProcessModels.ONE_TASK_PROCESS);
            ProcessDefinition tenant2Definition = testHelper.deployForTenantAndGetDefinition(TENANT_TWO, ProcessModels.ONE_TASK_PROCESS);

            sharedBatch  = batchHelper.migrateProcessInstanceAsync(sharedDefinition, sharedDefinition);
            tenant1Batch = batchHelper.migrateProcessInstanceAsync(tenant1Definition, tenant1Definition);
            tenant2Batch = batchHelper.migrateProcessInstanceAsync(tenant2Definition, tenant2Definition);
        }
Пример #2
0
        /// <summary>
        /// Source: no tenant id
        /// Target: no tenant id
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testBatchTenantIdCase1()
        public virtual void testBatchTenantIdCase1()
        {
            // given
            Batch batch = batchHelper.migrateProcessInstanceAsync(sharedDefinition, sharedDefinition);

            // then
            Assert.assertNull(batch.TenantId);
        }