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());
}
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());
}
Aggregations