-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathScopeNestedTest.java
More file actions
38 lines (29 loc) · 1.15 KB
/
ScopeNestedTest.java
File metadata and controls
38 lines (29 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.example.it;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import generated.scopenested.TC_nestedSubProcessStartEvent__endEvent;
import generated.scopenested.TC_startEvent__endEvent;
import generated.scopenested.TC_subProcessStartEvent__endEvent;
public class ScopeNestedTest {
@RegisterExtension
public TC_startEvent__endEvent tc = new TC_startEvent__endEvent();
@RegisterExtension
public TC_subProcessStartEvent__endEvent tcSubProcessStart = new TC_subProcessStartEvent__endEvent();
@RegisterExtension
public TC_nestedSubProcessStartEvent__endEvent tcNestedSubProcessStart = new TC_nestedSubProcessStartEvent__endEvent();
@Test
public void testExecute() {
tc.handleSubProcess().verifyLoopCount(3);
tc.handleSubProcess().handleNestedSubProcess().verifyLoopCount(2);
tc.createExecutor().execute();
}
@Test
public void testExecuteSubProcessStart() {
tcSubProcessStart.handleNestedSubProcess().verifyLoopCount(2);
tc.createExecutor().execute();
}
@Test
public void testExecuteNestedSubProcessStart() {
tcNestedSubProcessStart.createExecutor().execute();
}
}