X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.tests.modelled%2Fsrc%2Forg%2Fsimantics%2Ftests%2Fmodelled%2Fjunit%2FRuntimeTestCollector.java;h=733cea952025c0ad2122dbf4621f25891d77a85d;hp=3cdc981b767bf6762eefaf45e98b95be0d05780d;hb=f03893d9b643eae3f03debf7a656edbfa5b9b501;hpb=51006ffec13cbf8e0d9c8b07212d69478e4bdd4e diff --git a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeTestCollector.java b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeTestCollector.java index 3cdc981b7..733cea952 100644 --- a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeTestCollector.java +++ b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeTestCollector.java @@ -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 perform(ReadGraph graph) throws DatabaseException { List sharedOntologies = Simantics.applySCL("Simantics/SharedOntologies", "getSharedOntologies", graph, Tuple0.INSTANCE); - + if (LOGGER.isInfoEnabled()) + LOGGER.info("Found {} shared ontologies from graph", sharedOntologies.size()); Set 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 stsSuites = ModelingUtils.searchByType(graph, sharedOntology, TESTS.STSSuite); for (Resource stsSuite : stsSuites) { try {