예제 #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);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testStatisticsMostExecutionJobsGenerated()
        public virtual void testStatisticsMostExecutionJobsGenerated()
        {
            // given
            Batch batch = helper.createMigrationBatchWithSize(13);

            // when
            helper.executeJob(helper.getSeedJob(batch));

            // then
            BatchStatistics batchStatistics = managementService.createBatchStatisticsQuery().singleResult();

            assertEquals(13, batchStatistics.TotalJobs);
            assertEquals(10, batchStatistics.JobsCreated);
            assertEquals(13, batchStatistics.RemainingJobs);
            assertEquals(0, batchStatistics.CompletedJobs);
            assertEquals(0, batchStatistics.FailedJobs);
        }