use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByNullCaseInstanceVariableValueGreaterThanOrEqual.
public void testQueryByNullCaseInstanceVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.caseInstanceVariableValueGreaterThanOrEqual("aNullValue", null).list();
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByBooleanVariableValueLessThanOrEqual.
public void testQueryByBooleanVariableValueLessThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aBooleanValue", true).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueLessThanOrEqual("aBooleanValue", false).list();
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByNullCaseInstanceVariableValueLessThan.
public void testQueryByNullCaseInstanceVariableValueLessThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.caseInstanceVariableValueLessThan("aNullValue", null).list();
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByNullVariableValueGreaterThanOrEqual.
public void testQueryByNullVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueGreaterThanOrEqual("aNullValue", null).list();
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByInvalidCaseInstanceId.
public void testQueryByInvalidCaseInstanceId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.caseInstanceId("invalid");
verifyQueryResults(query, 0);
try {
query.caseInstanceId(null);
fail();
} catch (NotValidException e) {
}
}
Aggregations