Skip to content
Snippets Groups Projects
Commit d9667269 authored by Florian Lambers's avatar Florian Lambers
Browse files

added getStartFlowElements

parent 159e43fc
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,7 @@ import de.fhmuenster.masterthesis.testgeneratorDSL.Mock; ...@@ -43,6 +43,7 @@ import de.fhmuenster.masterthesis.testgeneratorDSL.Mock;
import de.fhmuenster.masterthesis.testgeneratorDSL.MockReference; import de.fhmuenster.masterthesis.testgeneratorDSL.MockReference;
import de.fhmuenster.masterthesis.testgeneratorDSL.Model; import de.fhmuenster.masterthesis.testgeneratorDSL.Model;
import de.fhmuenster.masterthesis.testgeneratorDSL.ServiceTaskFlowElement; import de.fhmuenster.masterthesis.testgeneratorDSL.ServiceTaskFlowElement;
import de.fhmuenster.masterthesis.testgeneratorDSL.StartFlowElement;
import de.fhmuenster.masterthesis.testgeneratorDSL.StringVariable; import de.fhmuenster.masterthesis.testgeneratorDSL.StringVariable;
import de.fhmuenster.masterthesis.testgeneratorDSL.Test; import de.fhmuenster.masterthesis.testgeneratorDSL.Test;
import de.fhmuenster.masterthesis.testgeneratorDSL.TestgeneratorDSLFactory; import de.fhmuenster.masterthesis.testgeneratorDSL.TestgeneratorDSLFactory;
...@@ -147,6 +148,15 @@ public class TestgeneratorDSLSerializer { ...@@ -147,6 +148,15 @@ public class TestgeneratorDSLSerializer {
return userTaskElements; return userTaskElements;
} }
public List<StartFlowElement> getStartFlowElements() {
List<StartFlowElement> startFlowElements = model.getDeclarations().stream() //
.filter(d -> d instanceof StartFlowElement) //
.map(f -> ((StartFlowElement) f)) //
.collect(Collectors.toList()); //
return startFlowElements;
}
public List<FlowElement> getFlowElements() { public List<FlowElement> getFlowElements() {
return model.getDeclarations().stream() // return model.getDeclarations().stream() //
.filter(decl -> decl instanceof FlowElement) // .filter(decl -> decl instanceof FlowElement) //
......
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