aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process/src/test/java
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.Com>2017-03-21 13:50:43 +0100
committerGitHub <noreply@github.com>2017-03-21 13:50:43 +0100
commit7e3819c67725d92e4078c16c4cdd3d6cb8629d5d (patch)
treebd8e11d4341151e6786c797c447954effaff3ff6 /server/sonar-process/src/test/java
parentff0efa8afb8e47ae7dea5f0a190b1772ba59ec0e (diff)
downloadsonarqube-7e3819c67725d92e4078c16c4cdd3d6cb8629d5d.tar.gz
sonarqube-7e3819c67725d92e4078c16c4cdd3d6cb8629d5d.zip
SONAR-8935 Add a log when joining a cluster
Diffstat (limited to 'server/sonar-process/src/test/java')
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/NetworkUtilsTest.java5
1 files changed, 5 insertions, 0 deletions
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 e12aab1e2f3..9d9ea9a368b 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
@@ -75,4 +75,9 @@ public class NetworkUtilsTest {
randomPortFinder.getNextAvailablePort();
}
+
+ @Test
+ public void getHostName_must_return_a_value() {
+ assertThat(NetworkUtils.getHostName()).containsPattern(".* \\(.*\\)");
+ }
}