use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByInvalidNResourceNameLike.
@Test
public void queryByInvalidNResourceNameLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionResourceNameLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionNameLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByInvalidNameLike.
@Test
public void queryByInvalidNameLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionNameLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionNameLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByNullVariableValueGreaterThan.
public void testQueryByNullVariableValueGreaterThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueGreaterThan("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 testQueryByNullCaseInstanceVariableValueLike.
public void testQueryByNullCaseInstanceVariableValueLike() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.caseInstanceVariableValueLike("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 testQueryByInvalidCaseInstanceBusinessKey.
public void testQueryByInvalidCaseInstanceBusinessKey() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.caseInstanceBusinessKey("invalid");
verifyQueryResults(query, 0);
try {
query.caseInstanceBusinessKey(null);
fail();
} catch (NotValidException e) {
}
}
Aggregations