use of org.activiti.engine.repository.DeploymentQuery in project Activiti by Activiti.
the class DeploymentQueryEscapeClauseTest method testQueryByNameLike.
public void testQueryByNameLike() {
DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentNameLike("%\\%%");
assertEquals("one%", query.singleResult().getName());
assertEquals(1, query.list().size());
assertEquals(1, query.count());
query = repositoryService.createDeploymentQuery().deploymentNameLike("%\\_%");
assertEquals("two_", query.singleResult().getName());
assertEquals(1, query.list().size());
assertEquals(1, query.count());
}
use of org.activiti.engine.repository.DeploymentQuery in project Activiti by Activiti.
the class DeploymentQueryEscapeClauseTest method testQueryByProcessDefinitionKeyLike.
public void testQueryByProcessDefinitionKeyLike() {
DeploymentQuery query = repositoryService.createDeploymentQuery().processDefinitionKeyLike("%\\_%");
assertEquals(1, query.list().size());
assertEquals(1, query.count());
}
Aggregations