use of org.camunda.bpm.engine.exception.NotValidException in project camunda-bpm-platform by camunda.
the class DecisionDefinitionQueryTest method queryByInvalidKeyLike.
@Test
public void queryByInvalidKeyLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionKeyLike("%invalid%");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionKeyLike(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 queryByInvalidCategoryLike.
@Test
public void queryByInvalidCategoryLike() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionCategoryLike("invalid");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionCategoryLike(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 testInvalidUsageOfLatest.
public void testInvalidUsageOfLatest() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
try {
query.decisionDefinitionId("test").latestVersion().list();
fail();
} catch (NotValidException e) {
// Expected exception
}
try {
query.decisionDefinitionName("test").latestVersion().list();
fail();
} catch (NotValidException e) {
// Expected exception
}
try {
query.decisionDefinitionNameLike("test").latestVersion().list();
fail();
} catch (NotValidException e) {
// Expected exception
}
try {
query.decisionDefinitionVersion(1).latestVersion().list();
fail();
} catch (NotValidException e) {
// Expected exception
}
try {
query.deploymentId("test").latestVersion().list();
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 queryByInvalidDeploymentId.
@Test
public void queryByInvalidDeploymentId() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
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 DecisionDefinitionQueryTest method queryByInvalidName.
@Test
public void queryByInvalidName() {
DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();
query.decisionDefinitionName("invalid");
verifyQueryResults(query, 0);
try {
query.decisionDefinitionName(null);
fail();
} catch (NotValidException e) {
// Expected exception
}
}
Aggregations