aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-12-02 15:32:31 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-12-02 15:32:31 +0100
commit7be978a8018689cbbf3c58338d966d2e324ed36f (patch)
tree5f5a2a45e417d24bc5522f28478dc117da39e618
parent86b6f9ee96d3e6037c1063c3862c455822e7e256 (diff)
downloadsonarqube-7be978a8018689cbbf3c58338d966d2e324ed36f.tar.gz
sonarqube-7be978a8018689cbbf3c58338d966d2e324ed36f.zip
Add missing header + remove hibernate logs when executing unit tests
-rw-r--r--sonar-core/src/main/java/org/sonar/persistence/DatabaseUtils.java19
-rw-r--r--sonar-core/src/test/resources/logback-test.xml8
2 files changed, 27 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/persistence/DatabaseUtils.java b/sonar-core/src/main/java/org/sonar/persistence/DatabaseUtils.java
index 15dc2a4d061..b74a5a9160a 100644
--- a/sonar-core/src/main/java/org/sonar/persistence/DatabaseUtils.java
+++ b/sonar-core/src/main/java/org/sonar/persistence/DatabaseUtils.java
@@ -1,3 +1,22 @@
+/*
+ * Sonar, open source software quality management tool.
+ * Copyright (C) 2008-2011 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * Sonar is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * Sonar is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Sonar; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+ */
package org.sonar.persistence;
/**
diff --git a/sonar-core/src/test/resources/logback-test.xml b/sonar-core/src/test/resources/logback-test.xml
index 9f766d3538d..a2ba00f96b8 100644
--- a/sonar-core/src/test/resources/logback-test.xml
+++ b/sonar-core/src/test/resources/logback-test.xml
@@ -11,6 +11,14 @@
</encoder>
</appender>
+ <logger name="org.hibernate">
+ <level value="WARN"/>
+ </logger>
+
+ <logger name="org.dbunit.database.DatabaseDataSet">
+ <level value="WARN"/>
+ </logger>
+
<root>
<level value="INFO"/>
<appender-ref ref="STDOUT"/>