use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByJobDefinitionId.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByJobDefinitionId() {
runtimeService.startProcessInstanceByKey("process");
String jobDefinitionId = managementService.createJobQuery().singleResult().getJobDefinitionId();
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobDefinitionId(jobDefinitionId);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidExecutionId.
public void testQueryByInvalidExecutionId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().executionIdIn("invalid");
verifyQueryResults(query, 0);
String[] nullValue = null;
try {
query.executionIdIn(nullValue);
fail();
} catch (Exception e) {
}
String[] executionIdsContainsNull = { "a", null, "b" };
try {
query.executionIdIn(executionIdsContainsNull);
fail();
} catch (Exception e) {
}
String[] executionIdsContainsEmptyString = { "a", "", "b" };
try {
query.executionIdIn(executionIdsContainsEmptyString);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidLogId.
public void testQueryByInvalidLogId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().logId("invalid");
verifyQueryResults(query, 0);
try {
query.logId(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidDeploymentId.
public void testQueryByInvalidDeploymentId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().deploymentId("invalid");
verifyQueryResults(query, 0);
try {
query.deploymentId(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidJobDefinitionConfiguration.
public void testQueryByInvalidJobDefinitionConfiguration() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobDefinitionConfiguration("invalid");
verifyQueryResults(query, 0);
try {
query.jobDefinitionConfiguration(null);
fail();
} catch (Exception e) {
}
}
Aggregations