aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorJenkins CI <ci@sonarsource.com>2014-09-25 23:43:35 +0200
committerJenkins CI <ci@sonarsource.com>2014-09-25 23:43:35 +0200
commitb685462248789067942332c9bc584c21544756ff (patch)
tree777ae9e54e582066e48afc1fbbcd1256ab935520 /sonar-application
parent48d48e90931782cc1e94768a83ada71275476ceb (diff)
parentea1ac3789b9128e394284d82dfeaeab32dd441d8 (diff)
downloadsonarqube-b685462248789067942332c9bc584c21544756ff.tar.gz
sonarqube-b685462248789067942332c9bc584c21544756ff.zip
Automatic merge from branch-4.5
* origin/branch-4.5: SONAR-4898 add missing tests SONAR-4898 add missing tests Use correct temp dir for Ruby on Rails app Fail server startup if can not connect to DB
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/pom.xml14
-rw-r--r--sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java6
2 files changed, 8 insertions, 12 deletions
diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml
index 547bff09e2d..b054c0bd128 100644
--- a/sonar-application/pom.xml
+++ b/sonar-application/pom.xml
@@ -154,18 +154,8 @@
<!-- unit tests -->
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easytesting</groupId>
- <artifactId>fest-assert</artifactId>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java b/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java
index 11bcb2f5631..49a66bc590c 100644
--- a/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java
+++ b/sonar-application/src/test/java/org/sonar/application/DefaultSettingsTest.java
@@ -21,6 +21,7 @@ package org.sonar.application;
import org.junit.Test;
import org.sonar.process.Props;
+import org.sonar.test.TestUtils;
import java.util.Properties;
@@ -56,4 +57,9 @@ public class DefaultSettingsTest {
DefaultSettings.init(props);
assertThat(props.valueAsInt("sonar.search.port")).isGreaterThan(0);
}
+
+ @Test
+ public void private_constructor() throws Exception {
+ TestUtils.assertPrivateConstructor(DefaultSettings.class);
+ }
}