public virtual void testQueryByInvalidVariableTypeIn() { // given IDictionary <string, object> variables1 = new Dictionary <string, object>(); variables1["stringVar"] = "test"; variables1["boolVar"] = true; variables1["intVar"] = 5; runtimeService.startProcessInstanceByKey("oneTaskProcess", variables1); // when HistoricDetailQuery query = historyService.createHistoricDetailQuery().variableTypeIn("invalid"); // then assertEquals(0, query.count()); try { // when query.variableTypeIn(null); fail("A ProcessEngineException was expected."); } catch (ProcessEngineException) { // then fails } try { // when query.variableTypeIn((string)null); fail("A ProcessEngineException was expected."); } catch (ProcessEngineException) { // then fails } }