- LOGGER.info("Found {} shared ontologies from graph", sharedOntologies.size());
- Collection<ModelledSTSSuite> suites = new HashSet<>();
- TestsResource TESTS = TestsResource.getInstance(graph);
- Layer0 L0 = Layer0.getInstance(graph);
- for (Resource sharedOntology : sharedOntologies) {
- if (LOGGER.isInfoEnabled())
- LOGGER.info("Searching {} for modelled tests", graph.getURI(sharedOntology));
- List<Resource> stsSuites = ModelingUtils.searchByType(graph, sharedOntology, TESTS.STSSuite);
- for (Resource stsSuite : stsSuites) {
- try {
- Collection<Resource> tests = graph.syncRequest(new ObjectsWithType(stsSuite, L0.ConsistsOf, TESTS.STSTest));
- if (tests.isEmpty())
- continue;
-
- List<ModelledSTSTest> testRunners = new ArrayList<>(tests.size());
- for (Resource test : tests)
- testRunners.add(toModelledTest(graph, test));
+ LOGGER.info("Searching {} for modelled tests", graph.getURI(sharedOntology));
+ List<Resource> stsSuites = ModelingUtils.searchByType(graph, sharedOntology, TESTS.STSSuite);
+ for (Resource stsSuite : stsSuites) {
+ try {
+ Collection<Resource> tests = graph.syncRequest(new ObjectsWithType(stsSuite, L0.ConsistsOf, TESTS.STSTest));
+ if (tests.isEmpty())
+ continue;
+
+ List<ModelledSTSTest> testRunners = new ArrayList<>(tests.size());
+ for (Resource test : tests)
+ testRunners.add(toModelledTest(graph, test));