Beispiel #1
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);
        }