You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2014/04/08 11:22:07 UTC

svn commit: r1585670 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/LargeOperationIT.java

Author: mduerig
Date: Tue Apr  8 09:22:07 2014
New Revision: 1585670

URL: http://svn.apache.org/r1585670
Log:
OAK-1698: Improve LargeOperationIT accuracy for document nodes store fixture
Disable noisy loggers for the test run

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/LargeOperationIT.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/LargeOperationIT.java?rev=1585670&r1=1585669&r2=1585670&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/LargeOperationIT.java (original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/LargeOperationIT.java Tue Apr  8 09:22:07 2014
@@ -50,6 +50,8 @@ import javax.jcr.SimpleCredentials;
 import javax.jcr.observation.EventIterator;
 import javax.jcr.observation.EventListener;
 
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.LoggerContext;
 import com.google.common.collect.Lists;
 import org.apache.commons.math3.distribution.BinomialDistribution;
 import org.apache.commons.math3.exception.MathIllegalArgumentException;
@@ -61,6 +63,7 @@ import org.apache.commons.math3.exceptio
 import org.apache.jackrabbit.api.JackrabbitRepository;
 import org.apache.jackrabbit.oak.jcr.NodeStoreFixture.DocumentFixture;
 import org.apache.jackrabbit.oak.jcr.NodeStoreFixture.SegmentFixture;
+import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore;
 import org.apache.jackrabbit.oak.plugins.segment.SegmentStore;
 import org.apache.jackrabbit.oak.plugins.segment.file.FileStore;
 import org.apache.jackrabbit.oak.spi.state.NodeStore;
@@ -157,6 +160,12 @@ public class LargeOperationIT {
 
     @Before
     public void setup() throws RepositoryException {
+        // Disable noisy logging we want to ignore for these tests
+        ((LoggerContext)LoggerFactory.getILoggerFactory())
+                .getLogger(DocumentNodeStore.class).setLevel(Level.ERROR);
+        ((LoggerContext)LoggerFactory.getILoggerFactory())
+                .getLogger("org.apache.jackrabbit.oak.jcr.observation.ChangeProcessor").setLevel(Level.ERROR);
+
         nodeStore = fixture.createNodeStore();
         repository  = new Jcr(nodeStore).createRepository();
         session = createAdminSession();