use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class AuthorizationTest method testStartProcessInstance.
@Test
@ScenarioUnderTest("startProcessInstance.1")
public void testStartProcessInstance() {
ProcessInstance instance = runtimeService.startProcessInstanceByKey("oneTaskProcess");
assertNotNull(instance);
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class AuthorizationTest method testGetProcessDefinition.
@Test
@ScenarioUnderTest("startProcessInstance.1")
public void testGetProcessDefinition() {
ProcessDefinition definition = repositoryService.createProcessDefinitionQuery().processDefinitionKey("oneTaskProcess").singleResult();
assertNotNull(definition);
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class AuthorizationTest method testSubmitStartForm.
@Test
@ScenarioUnderTest("startProcessInstance.1")
public void testSubmitStartForm() {
String processDefinitionId = repositoryService.createProcessDefinitionQuery().processDefinitionKey("oneTaskProcess").singleResult().getId();
ProcessInstance instance = formService.submitStartForm(processDefinitionId, null);
assertNotNull(instance);
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NestedNonInterruptingBoundaryEventOnOuterSubprocessScenarioTest method testInitMessageActivityInstanceTree.
@Test
@ScenarioUnderTest("initMessage.3")
public void testInitMessageActivityInstanceTree() {
// given
ProcessInstance instance = rule.processInstance();
// when
ActivityInstance activityInstance = rule.getRuntimeService().getActivityInstance(instance.getId());
// then
Assert.assertNotNull(activityInstance);
assertThat(activityInstance).hasStructure(describeActivityInstanceTree(instance.getProcessDefinitionId()).activity("afterBoundaryTask").beginScope("outerSubProcess").beginScope("innerSubProcess").activity("innerSubProcessTask").done());
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NestedNonInterruptingBoundaryEventOnOuterSubprocessScenarioTest method testInitTimerDeletion.
@Test
@ScenarioUnderTest("initTimer.4")
public void testInitTimerDeletion() {
// given
ProcessInstance instance = rule.processInstance();
// when
rule.getRuntimeService().deleteProcessInstance(instance.getId(), null);
// then
rule.assertScenarioEnded();
}
Aggregations