assertEquals(2, query.list().size());
}
@Deployment(resources={"org/camunda/bpm/engine/test/history/HistoricTaskInstanceTest.testHistoricTaskInstance.bpmn20.xml"})
public void testHistoricTaskInstanceQueryByInvalidActivityInstanceId() {
HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();
query.activityInstanceIdIn("invalid");
assertEquals(0, query.count());
try {
query.activityInstanceIdIn(null);
fail("A ProcessEngineExcpetion was expected.");
} catch (ProcessEngineException e) {}
try {
query.activityInstanceIdIn((String)null);
fail("A ProcessEngineExcpetion was expected.");
} catch (ProcessEngineException e) {}
try {
String[] values = { "a", null, "b" };
query.activityInstanceIdIn(values);
fail("A ProcessEngineExcpetion was expected.");
} catch (ProcessEngineException e) {}
}