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

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

            // then
            batch = managementService.createBatchQuery().batchId(batch.Id).singleResult();
            assertTrue(batch.Suspended);
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void seedJobShouldHaveDefaultPriority()
        public virtual void seedJobShouldHaveDefaultPriority()
        {
            // when
            Batch batch = helper.migrateProcessInstancesAsync(1);

            // then
            Job seedJob = helper.getSeedJob(batch);

            assertEquals(DefaultJobPriorityProvider.DEFAULT_PRIORITY, seedJob.Priority);
        }