Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void monitorJobShouldGetPriorityOverridingJobDefinitionPriority()
        public virtual void monitorJobShouldGetPriorityOverridingJobDefinitionPriority()
        {
            // given
            Batch         batch = helper.migrateProcessInstancesAsync(1);
            JobDefinition monitorJobDefinition = helper.getMonitorJobDefinition(batch);

            managementService.setOverridingJobPriorityForJobDefinition(monitorJobDefinition.Id, CUSTOM_PRIORITY);

            // when
            helper.executeSeedJob(batch);

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

            assertEquals(CUSTOM_PRIORITY, monitorJob.Priority);
        }
Exemple #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);
        }