use of org.activiti.engine.ActivitiIllegalArgumentException in project Activiti by Activiti.
the class DeploymentQueryTest method testQueryByInvalidDeploymentId.
public void testQueryByInvalidDeploymentId() {
DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentId("invalid");
assertNull(query.singleResult());
assertEquals(0, query.list().size());
assertEquals(0, query.count());
try {
repositoryService.createDeploymentQuery().deploymentId(null);
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.ActivitiIllegalArgumentException in project Activiti by Activiti.
the class DeploymentQueryTest method testQueryByInvalidName.
public void testQueryByInvalidName() {
DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName("invalid");
assertNull(query.singleResult());
assertEquals(0, query.list().size());
assertEquals(0, query.count());
try {
repositoryService.createDeploymentQuery().deploymentName(null);
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.ActivitiIllegalArgumentException in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidId.
public void testQueryByInvalidId() {
UserQuery query = identityService.createUserQuery().userId("invalid");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userId(null).singleResult();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.ActivitiIllegalArgumentException in project Activiti by Activiti.
the class JobQueryTest method testQueryByInvalidProcessInstanceId.
public void testQueryByInvalidProcessInstanceId() {
JobQuery query = managementService.createJobQuery().processInstanceId("invalid");
verifyQueryResults(query, 0);
try {
managementService.createJobQuery().processInstanceId(null);
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.ActivitiIllegalArgumentException in project Activiti by Activiti.
the class ProcessDefinitionQueryTest method testQueryByInvalidKey.
public void testQueryByInvalidKey() {
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery().processDefinitionKey("invalid");
verifyQueryResults(query, 0);
try {
repositoryService.createProcessDefinitionQuery().processDefinitionKey(null);
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
Aggregations