Browse Source

DATAMONGO-576 - Configure java.util.logging to prevent verbose test logging.

Added Slf4j bridge and configured surefire to configure JUL accordingly.
pull/19/merge
Oliver Gierke 13 years ago
parent
commit
772a140def
  1. 9
      spring-data-mongodb-parent/pom.xml
  2. 1
      spring-data-mongodb/src/test/resources/logging.properties

9
spring-data-mongodb-parent/pom.xml

@ -161,6 +161,12 @@ @@ -161,6 +161,12 @@
<version>${org.slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${org.slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
@ -259,6 +265,9 @@ @@ -259,6 +265,9 @@
<exclude>**/PerformanceTests.java</exclude>
</excludes>
<junitArtifactName>junit:junit-dep</junitArtifactName>
<systemPropertyVariables>
<java.util.logging.config.file>src/test/resources/logging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>

1
spring-data-mongodb/src/test/resources/logging.properties

@ -0,0 +1 @@ @@ -0,0 +1 @@
handlers = org.slf4j.bridge.SLF4JBridgeHandler
Loading…
Cancel
Save