use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseDefinitionQueryTest method testQueryByInvalidDeploymentId.
public void testQueryByInvalidDeploymentId() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query.deploymentId("invalid");
verifyQueryResults(query, 0);
try {
query.deploymentId(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseDefinitionQueryTest method testQueryByInvalidCategoryLike.
public void testQueryByInvalidCategoryLike() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query.caseDefinitionCategoryLike("invalid");
verifyQueryResults(query, 0);
try {
query.caseDefinitionCategoryLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseDefinitionQueryTest method testQueryByInvalidNameLike.
public void testQueryByInvalidNameLike() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query.caseDefinitionNameLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.caseDefinitionNameLike(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class CaseDefinitionQueryTest method testQueryByInvalidKeyLike.
public void testQueryByInvalidKeyLike() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query.caseDefinitionKeyLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.caseDefinitionKeyLike(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 queryByInvalidKey.
@Test
public void queryByInvalidKey() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionKey("invalid");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionKey(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
Aggregations