jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1522940 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java
Date Fri, 13 Sep 2013 14:06:02 GMT
Author: jukka
Date: Fri Sep 13 14:06:02 2013
New Revision: 1522940

URL: http://svn.apache.org/r1522940
Log:
OAK-967: Run parameterized tests in parallel

The parallel setup would result in concurrent initialization
of and related warnings from the logging system. By adding an
explicit logger already in this class, we can force the logging
system to auto-initialize itself already before the concurrent
test execution starts.

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java?rev=1522940&r1=1522939&r2=1522940&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/Parallelized.java
Fri Sep 13 14:06:02 2013
@@ -22,6 +22,8 @@ import java.util.concurrent.TimeUnit;
 
 import org.junit.runners.Parameterized;
 import org.junit.runners.model.RunnerScheduler;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Extension of the {@link Parameterized} test runner, which runs tests in
@@ -29,6 +31,15 @@ import org.junit.runners.model.RunnerSch
  */
 public class Parallelized extends Parameterized {
 
+    /**
+     * Logger instance. Unused by this class, but present to force early
+     * auto-initialization of the logging system and thus to avoid warnings
+     * about concurrent initialization.
+     */
+    @SuppressWarnings("unused")
+    private static final Logger log =
+            LoggerFactory.getLogger(Parallelized.class);
+
     private static class ThreadPoolScheduler implements RunnerScheduler {
         private ExecutorService executor;
 



Mime
View raw message