//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void seedJobShouldGetPriorityFromOverridingJobDefinitionPriority() public virtual void seedJobShouldGetPriorityFromOverridingJobDefinitionPriority() { // given Batch batch = helper.migrateProcessInstancesAsync(2); JobDefinition seedJobDefinition = helper.getSeedJobDefinition(batch); managementService.setOverridingJobPriorityForJobDefinition(seedJobDefinition.Id, CUSTOM_PRIORITY); // when helper.executeSeedJob(batch); // then Job seedJob = helper.getSeedJob(batch); assertEquals(CUSTOM_PRIORITY, seedJob.Priority); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSuspendSeedJobAndDefinition() public virtual void shouldSuspendSeedJobAndDefinition() { // given Batch batch = helper.migrateProcessInstancesAsync(1); // when managementService.suspendBatchById(batch.Id); // then JobDefinition seedJobDefinition = helper.getSeedJobDefinition(batch); assertTrue(seedJobDefinition.Suspended); Job seedJob = helper.getSeedJob(batch); assertTrue(seedJob.Suspended); }