Search in sources :

Example 6 with BatchDto

use of org.camunda.bpm.engine.rest.dto.batch.BatchDto in project camunda-bpm-platform by camunda.

the class HistoricDecisionInstanceRestServiceInteractionTest method verifyBatchJson.

protected void verifyBatchJson(String batchJson) {
    BatchDto batch = JsonPathUtil.from(batchJson).getObject("", BatchDto.class);
    assertNotNull("The returned batch should not be null.", batch);
    assertEquals(MockProvider.EXAMPLE_BATCH_ID, batch.getId());
    assertEquals(MockProvider.EXAMPLE_BATCH_TYPE, batch.getType());
    assertEquals(MockProvider.EXAMPLE_BATCH_TOTAL_JOBS, batch.getTotalJobs());
    assertEquals(MockProvider.EXAMPLE_BATCH_JOBS_PER_SEED, batch.getBatchJobsPerSeed());
    assertEquals(MockProvider.EXAMPLE_INVOCATIONS_PER_BATCH_JOB, batch.getInvocationsPerBatchJob());
    assertEquals(MockProvider.EXAMPLE_SEED_JOB_DEFINITION_ID, batch.getSeedJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_MONITOR_JOB_DEFINITION_ID, batch.getMonitorJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_BATCH_JOB_DEFINITION_ID, batch.getBatchJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_TENANT_ID, batch.getTenantId());
}
Also used : BatchDto(org.camunda.bpm.engine.rest.dto.batch.BatchDto)

Example 7 with BatchDto

use of org.camunda.bpm.engine.rest.dto.batch.BatchDto in project camunda-bpm-platform by camunda.

the class BatchRestServiceInteractionTest method verifyBatchJson.

protected void verifyBatchJson(String batchJson) {
    BatchDto batch = from(batchJson).getObject("", BatchDto.class);
    assertNotNull("The returned batch should not be null.", batch);
    assertEquals(MockProvider.EXAMPLE_BATCH_ID, batch.getId());
    assertEquals(MockProvider.EXAMPLE_BATCH_TYPE, batch.getType());
    assertEquals(MockProvider.EXAMPLE_BATCH_TOTAL_JOBS, batch.getTotalJobs());
    assertEquals(MockProvider.EXAMPLE_BATCH_JOBS_PER_SEED, batch.getBatchJobsPerSeed());
    assertEquals(MockProvider.EXAMPLE_INVOCATIONS_PER_BATCH_JOB, batch.getInvocationsPerBatchJob());
    assertEquals(MockProvider.EXAMPLE_SEED_JOB_DEFINITION_ID, batch.getSeedJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_MONITOR_JOB_DEFINITION_ID, batch.getMonitorJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_BATCH_JOB_DEFINITION_ID, batch.getBatchJobDefinitionId());
    assertEquals(MockProvider.EXAMPLE_TENANT_ID, batch.getTenantId());
}
Also used : BatchDto(org.camunda.bpm.engine.rest.dto.batch.BatchDto)

Aggregations

BatchDto (org.camunda.bpm.engine.rest.dto.batch.BatchDto)7 ArrayList (java.util.ArrayList)1 Batch (org.camunda.bpm.engine.batch.Batch)1 BatchQuery (org.camunda.bpm.engine.batch.BatchQuery)1 BatchQueryDto (org.camunda.bpm.engine.rest.dto.batch.BatchQueryDto)1