use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByBooleanVariableValueGreaterThanOrEqual.
public void testQueryByBooleanVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aBooleanValue", true).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueGreaterThanOrEqual("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 testQueryByNullVariableValueLessThan.
public void testQueryByNullVariableValueLessThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueLessThan("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 testQueryByNullVariableValueLessThanOrEqual.
public void testQueryByNullVariableValueLessThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueLessThanOrEqual("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 testQueryByInvalidCaseDefinitionId.
public void testQueryByInvalidCaseDefinitionId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.caseDefinitionId("invalid");
verifyQueryResults(query, 0);
try {
query.caseDefinitionId(null);
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByInvalidActivityId.
public void testQueryByInvalidActivityId() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.activityId("invalid");
verifyQueryResults(query, 0);
try {
query.activityId(null);
fail();
} catch (NotValidException e) {
}
}
Aggregations