use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NonInterruptingEventSubprocessScenarioTest method testInitActivityInstanceTree.
@Test
@ScenarioUnderTest("init.3")
public void testInitActivityInstanceTree() {
// given
ProcessInstance instance = rule.processInstance();
// when
ActivityInstance activityInstance = rule.getRuntimeService().getActivityInstance(instance.getId());
// then
Assert.assertNotNull(activityInstance);
assertThat(activityInstance).hasStructure(describeActivityInstanceTree(instance.getProcessDefinitionId()).activity("outerTask").activity("eventSubProcessTask").done());
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NonInterruptingEventSubprocessScenarioTest method testInitTask1ActivityInstanceTree.
@Test
@ScenarioUnderTest("init.outerTask.2")
public void testInitTask1ActivityInstanceTree() {
// given
ProcessInstance instance = rule.processInstance();
// when
ActivityInstance activityInstance = rule.getRuntimeService().getActivityInstance(instance.getId());
// then
Assert.assertNotNull(activityInstance);
assertThat(activityInstance).hasStructure(describeActivityInstanceTree(instance.getProcessDefinitionId()).activity("eventSubProcessTask").done());
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NonInterruptingEventSubprocessScenarioTest method testInitOuterTaskDeletion.
@Test
@ScenarioUnderTest("init.outerTask.3")
public void testInitOuterTaskDeletion() {
// given
ProcessInstance instance = rule.processInstance();
// when
rule.getRuntimeService().deleteProcessInstance(instance.getId(), null);
// then
rule.assertScenarioEnded();
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NonInterruptingEventSubprocessScenarioTest method testInitCompletionCase1.
@Test
@ScenarioUnderTest("init.1")
public void testInitCompletionCase1() {
// given
Task outerTask = rule.taskQuery().taskDefinitionKey("outerTask").singleResult();
Task eventSubprocessTask = rule.taskQuery().taskDefinitionKey("eventSubProcessTask").singleResult();
// when
rule.getTaskService().complete(outerTask.getId());
rule.getTaskService().complete(eventSubprocessTask.getId());
// then
rule.assertScenarioEnded();
}
use of org.camunda.bpm.qa.upgrade.ScenarioUnderTest in project camunda-bpm-platform by camunda.
the class NonInterruptingEventSubprocessScenarioTest method testInitDeletion.
@Test
@ScenarioUnderTest("init.4")
public void testInitDeletion() {
// given
ProcessInstance instance = rule.processInstance();
// when
rule.getRuntimeService().deleteProcessInstance(instance.getId(), null);
// then
rule.assertScenarioEnded();
}
Aggregations