Skip to content
Snippets Groups Projects
Commit f3e31341 authored by tfli's avatar tfli
Browse files

Added order to dsl and testcollection.java

parent c2927827
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,7 @@ FlowReference:
Test:
'Test' name=ID 'for' flowReference=FlowReference
('with' 'priority' priority=INT)?
('with' 'order' order=INT)?
('with' 'flag' ASSOCIATION flag=Flag)?
(declarations+=VariableDeclarations (SEPARATOR declarations+=VariableDeclarations)*)?
(endCheck=EndChecks)?
......
......@@ -351,7 +351,7 @@ class TestgeneratorDSLGenerator extends AbstractGenerator {
val Testcase testcase = c.build(bpmnTestcase);
appendLine("\t@Test");
appendLine("\t@Order(" + test.getPriority() + (")"));
appendLine("\t@Order(" + test.getOrder() + (")"));
addDeployment(bpmnDiagram.getDeployments());
......
......@@ -431,7 +431,7 @@ public class TestgeneratorDSLObjectCreator {
return manualMock;
}
public static Test createTest(String name, Flow flow, List<VariableDeclarations> variableDeclarations, EndChecks endChecks, List<Mock> mocks, int priority, Flag flag) {
public static Test createTest(String name, Flow flow, List<VariableDeclarations> variableDeclarations, EndChecks endChecks, List<Mock> mocks, int priority, Flag flag, int order) {
FlowReference flowReference = TestgeneratorDSLFactory.eINSTANCE.createFlowReference();
flowReference.setRef(flow);
......@@ -447,6 +447,7 @@ public class TestgeneratorDSLObjectCreator {
test.setName(name);
test.setFlowReference(flowReference);
test.setPriority(priority);
test.setOrder(order);
test.setFlag(flag);
test.getDeclarations().addAll(variableDeclarations);
test.getMocks().addAll(mockRefs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment