Example #1
0
 protected internal virtual void deleteMigrationJobs(Batch batch)
 {
     foreach (Job migrationJob in helper.getExecutionJobs(batch))
     {
         managementService.deleteJob(migrationJob.Id);
     }
 }
Example #2
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);
        }