Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void monitorJobShouldHaveDefaultPriority()
        public virtual void monitorJobShouldHaveDefaultPriority()
        {
            // given
            Batch batch = helper.migrateProcessInstancesAsync(1);

            // when
            helper.executeSeedJob(batch);

            // then
            Job monitorJob = helper.getMonitorJob(batch);

            assertEquals(DefaultJobPriorityProvider.DEFAULT_PRIORITY, monitorJob.Priority);
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldSuspendMonitorJobAndDefinition()
        public virtual void shouldSuspendMonitorJobAndDefinition()
        {
            // given
            Batch batch = helper.migrateProcessInstancesAsync(1);

            helper.executeSeedJob(batch);

            // when
            managementService.suspendBatchById(batch.Id);

            // then
            JobDefinition monitorJobDefinition = helper.getMonitorJobDefinition(batch);

            assertTrue(monitorJobDefinition.Suspended);

            Job monitorJob = helper.getMonitorJob(batch);

            assertTrue(monitorJob.Suspended);
        }