]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeTestCollector.java
Enhancements to modelled STS-tests
[simantics/platform.git] / bundles / org.simantics.tests.modelled / src / org / simantics / tests / modelled / junit / RuntimeTestCollector.java
index 3cdc981b767bf6762eefaf45e98b95be0d05780d..733cea952025c0ad2122dbf4621f25891d77a85d 100644 (file)
@@ -19,9 +19,13 @@ import org.simantics.modeling.ModelingUtils;
 import org.simantics.scl.runtime.tuple.Tuple0;
 import org.simantics.tests.modelled.ontology.TestsResource;
 import org.simantics.utils.strings.AlphanumComparator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
+@Deprecated
 public class RuntimeTestCollector {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(RuntimeTestCollector.class);
     
     /**
      * TODO: The idea of this class was to collect all the tests from shared libraries and construct
@@ -36,11 +40,14 @@ public class RuntimeTestCollector {
                 public Collection<RuntimeSTSSuiteRunner> perform(ReadGraph graph) throws DatabaseException {
                     
                     List<Resource> sharedOntologies = Simantics.applySCL("Simantics/SharedOntologies", "getSharedOntologies", graph, Tuple0.INSTANCE);
-
+                    if (LOGGER.isInfoEnabled())
+                        LOGGER.info("Found {} shared ontologies from graph",  sharedOntologies.size());
                     Set<RuntimeSTSSuiteRunner> 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 {