use of org.camunda.bpm.engine.repository.DecisionRequirementsDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionRequirementsDefinitionQueryTest method queryByDecisionRequirementsDefinitionKey.
@Test
public void queryByDecisionRequirementsDefinitionKey() {
DecisionRequirementsDefinitionQuery query = repositoryService.createDecisionRequirementsDefinitionQuery();
assertThat(query.decisionRequirementsDefinitionKey("notExisting").count(), is(0L));
assertThat(query.decisionRequirementsDefinitionKey("score").count(), is(1L));
assertThat(query.singleResult().getKey(), is("score"));
}
use of org.camunda.bpm.engine.repository.DecisionRequirementsDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionRequirementsDefinitionQueryTest method queryByDecisionRequirementsDefinitionCategory.
@Test
public void queryByDecisionRequirementsDefinitionCategory() {
DecisionRequirementsDefinitionQuery query = repositoryService.createDecisionRequirementsDefinitionQuery();
assertThat(query.decisionRequirementsDefinitionCategory("notExisting").count(), is(0L));
assertThat(query.decisionRequirementsDefinitionCategory("test-drd-1").count(), is(1L));
assertThat(query.singleResult().getKey(), is("score"));
}
use of org.camunda.bpm.engine.repository.DecisionRequirementsDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionRequirementsDefinitionQueryTest method queryByDecisionRequirementsDefinitionId.
@Test
public void queryByDecisionRequirementsDefinitionId() {
DecisionRequirementsDefinitionQuery query = repositoryService.createDecisionRequirementsDefinitionQuery();
assertThat(query.decisionRequirementsDefinitionId("notExisting").count(), is(0L));
assertThat(query.decisionRequirementsDefinitionId(decisionRequirementsDefinitionId).count(), is(1L));
assertThat(query.singleResult().getKey(), is("score"));
}
use of org.camunda.bpm.engine.repository.DecisionRequirementsDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionRequirementsDefinitionQueryTest method queryByResourceNameLikeEscape.
@Test
public void queryByResourceNameLikeEscape() {
DecisionRequirementsDefinitionQuery query = repositoryService.createDecisionRequirementsDefinitionQuery();
assertThat(query.decisionRequirementsDefinitionResourceNameLike("%z\\_.%").count(), is(1L));
}
use of org.camunda.bpm.engine.repository.DecisionRequirementsDefinitionQuery in project camunda-bpm-platform by camunda.
the class DecisionRequirementsDefinitionQueryTest method queryByDeploymentId.
@Test
public void queryByDeploymentId() {
DecisionRequirementsDefinitionQuery query = repositoryService.createDecisionRequirementsDefinitionQuery();
assertThat(query.deploymentId("notExisting").count(), is(0L));
assertThat(query.deploymentId(firstDeploymentId).count(), is(2L));
assertThat(query.deploymentId(secondDeploymentId).count(), is(1L));
}
Aggregations