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

added getTests to serializer

parent 7ec0d098
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,13 @@ public class TestgeneratorDSLSerializer {
.collect(Collectors.toList()); //
}
public List<Test> getTests() {
return model.getDeclarations().stream() //
.filter(d -> d instanceof Test) //
.map(test -> ((Test) test)) //
.collect(Collectors.toList()); //
}
public List<Loop> getLoops() {
return model.getDeclarations().stream() //
.filter(l -> l instanceof Loop) //
......
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