コード例 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testBatchJobsTenantId()
        public virtual void testBatchJobsTenantId()
        {
            // given
            Batch batch = batchHelper.migrateProcessInstanceAsync(tenant1Definition, tenant1Definition);

            // then
            Job seedJob = batchHelper.getSeedJob(batch);

            Assert.assertEquals(TENANT_ONE, seedJob.TenantId);

            batchHelper.executeSeedJob(batch);

            IList <Job> migrationJob = batchHelper.getExecutionJobs(batch);

            Assert.assertEquals(TENANT_ONE, migrationJob[0].TenantId);

            Job monitorJob = batchHelper.getMonitorJob(batch);

            Assert.assertEquals(TENANT_ONE, monitorJob.TenantId);
        }