aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-30 09:56:55 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-30 09:56:55 +0200
commitf9b616759e48519bd59f14608fdd3057881de418 (patch)
tree8ec893d4fbffea741d06de3f3d3fbec97c1492b7 /server
parent7a6211086f961e128a3819743c59adf6eb2cd682 (diff)
parentc48b703be87fea2174450cec018b5b3209d6d6fa (diff)
downloadsonarqube-f9b616759e48519bd59f14608fdd3057881de418.tar.gz
sonarqube-f9b616759e48519bd59f14608fdd3057881de418.zip
Merge remote-tracking branch 'remotes/origin/branch-4.5'
Conflicts: plugins/sonar-core-plugin/pom.xml plugins/sonar-cpd-plugin/pom.xml plugins/sonar-dbcleaner-plugin/pom.xml plugins/sonar-design-plugin/pom.xml plugins/sonar-email-notifications-plugin/pom.xml plugins/sonar-l10n-en-plugin/pom.xml plugins/sonar-xoo-plugin/pom.xml pom.xml server/pom.xml server/sonar-process-monitor/pom.xml server/sonar-process/pom.xml server/sonar-search/pom.xml server/sonar-server/pom.xml server/sonar-web/pom.xml server/sonar-ws-client/pom.xml sonar-application/pom.xml sonar-batch-maven-compat/pom.xml sonar-batch-protocol/pom.xml sonar-batch/pom.xml sonar-check-api/pom.xml sonar-colorizer/pom.xml sonar-core/pom.xml sonar-deprecated/pom.xml sonar-duplications/pom.xml sonar-graph/pom.xml sonar-home/pom.xml sonar-java-api/pom.xml sonar-markdown/pom.xml sonar-maven-plugin/pom.xml sonar-maven3-plugin/pom.xml sonar-plugin-api/pom.xml sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java sonar-testing-harness/pom.xml
Diffstat (limited to 'server')
-rw-r--r--server/sonar-process-monitor/pom.xml12
-rw-r--r--server/sonar-process/pom.xml8
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/ConfigurationUtilsTest.java2
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/LoopbackAddressTest.java2
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java2
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java4
-rw-r--r--server/sonar-search/pom.xml12
-rw-r--r--server/sonar-server/pom.xml7
-rw-r--r--server/sonar-web/pom.xml3
-rw-r--r--server/sonar-ws-client/pom.xml7
10 files changed, 54 insertions, 5 deletions
diff --git a/server/sonar-process-monitor/pom.xml b/server/sonar-process-monitor/pom.xml
index e0e78a7fa4d..84b0b85cfb0 100644
--- a/server/sonar-process-monitor/pom.xml
+++ b/server/sonar-process-monitor/pom.xml
@@ -82,4 +82,16 @@
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>${skipServerTests}</skipTests>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/server/sonar-process/pom.xml b/server/sonar-process/pom.xml
index 387e5ecc519..4d0308efbad 100644
--- a/server/sonar-process/pom.xml
+++ b/server/sonar-process/pom.xml
@@ -91,6 +91,14 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>${skipServerTests}</skipTests>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
</project>
diff --git a/server/sonar-process/src/test/java/org/sonar/process/ConfigurationUtilsTest.java b/server/sonar-process/src/test/java/org/sonar/process/ConfigurationUtilsTest.java
index 4aa072a6eb3..cd92bbf4e7e 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/ConfigurationUtilsTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/ConfigurationUtilsTest.java
@@ -96,6 +96,6 @@ public class ConfigurationUtilsTest {
@Test
public void private_constructor() throws Exception {
- TestUtils.assertPrivateConstructor(ConfigurationUtils.class);
+ assertThat(TestUtils.hasOnlyPrivateConstructors(ConfigurationUtils.class)).isTrue();
}
}
diff --git a/server/sonar-process/src/test/java/org/sonar/process/LoopbackAddressTest.java b/server/sonar-process/src/test/java/org/sonar/process/LoopbackAddressTest.java
index b612e24342d..8ccafff1f66 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/LoopbackAddressTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/LoopbackAddressTest.java
@@ -52,6 +52,6 @@ public class LoopbackAddressTest {
@Test
public void private_constructor() throws Exception {
- TestUtils.assertPrivateConstructor(LoopbackAddress.class);
+ assertThat(TestUtils.hasOnlyPrivateConstructors(LoopbackAddress.class)).isTrue();
}
}
diff --git a/server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java b/server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java
index 0462f76707a..052c67d94fe 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java
@@ -42,6 +42,6 @@ public class NetworkUtilsTest {
@Test
public void private_constructor() throws Exception {
- TestUtils.assertPrivateConstructor(NetworkUtils.class);
+ assertThat(TestUtils.hasOnlyPrivateConstructors(NetworkUtils.class)).isTrue();
}
}
diff --git a/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java b/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java
index ae1f53b2653..1a18d5983ae 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java
@@ -22,10 +22,12 @@ package org.sonar.process;
import org.junit.Test;
import org.sonar.test.TestUtils;
+import static org.fest.assertions.Assertions.assertThat;
+
public class ProcessUtilsTest {
@Test
public void private_constructor() throws Exception {
- TestUtils.assertPrivateConstructor(ProcessUtils.class);
+ assertThat(TestUtils.hasOnlyPrivateConstructors(ProcessUtils.class)).isTrue();
}
}
diff --git a/server/sonar-search/pom.xml b/server/sonar-search/pom.xml
index f15dd473a3f..4acf667ce50 100644
--- a/server/sonar-search/pom.xml
+++ b/server/sonar-search/pom.xml
@@ -67,4 +67,16 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>${skipServerTests}</skipTests>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/server/sonar-server/pom.xml b/server/sonar-server/pom.xml
index 188888b6367..41c98f29168 100644
--- a/server/sonar-server/pom.xml
+++ b/server/sonar-server/pom.xml
@@ -263,6 +263,13 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>${skipServerTests}</skipTests>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml
index 324df14854a..27efe591792 100644
--- a/server/sonar-web/pom.xml
+++ b/server/sonar-web/pom.xml
@@ -173,7 +173,8 @@
<id>js-tests</id>
<activation>
<property>
- <name>!skipTests</name>
+ <name>skipWebTests</name>
+ <value>false</value>
</property>
</activation>
<build>
diff --git a/server/sonar-ws-client/pom.xml b/server/sonar-ws-client/pom.xml
index 4149dbea11b..089c5742d23 100644
--- a/server/sonar-ws-client/pom.xml
+++ b/server/sonar-ws-client/pom.xml
@@ -172,6 +172,13 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>${skipServerTests}</skipTests>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>