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

            // then
            JobDefinition migrationJobDefinition = batchHelper.getExecutionJobDefinition(batch);

            Assert.assertEquals(TENANT_ONE, migrationJobDefinition.TenantId);

            JobDefinition monitorJobDefinition = batchHelper.getMonitorJobDefinition(batch);

            Assert.assertEquals(TENANT_ONE, monitorJobDefinition.TenantId);

            JobDefinition seedJobDefinition = batchHelper.getSeedJobDefinition(batch);

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