use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByInvalidCaseDefinitionId.
public void testQueryByInvalidCaseDefinitionId() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
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 CaseInstanceQueryTest method testQueryByInvalidSuperProcessInstanceId.
public void testQueryByInvalidSuperProcessInstanceId() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery().superProcessInstanceId("invalid");
verifyQueryResults(query, 0);
try {
query.superProcessInstanceId(null);
fail();
} catch (NotValidException e) {
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByInvalidSuperCaseInstanceId.
public void testQueryByInvalidSuperCaseInstanceId() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery().superCaseInstanceId("invalid");
verifyQueryResults(query, 0);
try {
query.superCaseInstanceId(null);
fail();
} catch (NotValidException e) {
// expected
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByInvalidSubCaseInstanceId.
public void testQueryByInvalidSubCaseInstanceId() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery().subCaseInstanceId("invalid");
verifyQueryResults(query, 0);
try {
query.subCaseInstanceId(null);
fail();
} catch (NotValidException e) {
// expected
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseDefinitionQueryTest method testQueryByInvalidCategory.
public void testQueryByInvalidCategory() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query.caseDefinitionCategory("invalid");
verifyQueryResults(query, 0);
try {
query.caseDefinitionCategory(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
Aggregations