diff options
author | Daniel Schwarz <daniel.schwarz@sonarsource.com> | 2017-09-21 09:53:43 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-26 23:49:38 +0200 |
commit | 0d049321178a98f46a1739f1c2817098064f1475 (patch) | |
tree | e9a6283fd41eae24ccd65d2a660281c8c6ac4e99 /tests | |
parent | 231d183396ca7187b2b45c50927aa8a3bc8dac56 (diff) | |
download | sonarqube-0d049321178a98f46a1739f1c2817098064f1475.tar.gz sonarqube-0d049321178a98f46a1739f1c2817098064f1475.zip |
SONAR-9802 Fix quality flaws
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/Byteman.java | 4 | ||||
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/settings/ElasticsearchSettingsTest.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/Byteman.java b/tests/src/test/java/org/sonarqube/tests/Byteman.java index 23a0b0161c8..2e84c5aa1a9 100644 --- a/tests/src/test/java/org/sonarqube/tests/Byteman.java +++ b/tests/src/test/java/org/sonarqube/tests/Byteman.java @@ -24,7 +24,7 @@ import java.io.File; import java.net.InetAddress; import java.util.Collections; import org.jboss.byteman.agent.submit.Submit; -import org.sonar.process.NetworkUtils; +import org.sonar.process.NetworkUtilsImpl; import static java.lang.String.format; @@ -50,7 +50,7 @@ public class Byteman { public Byteman(OrchestratorBuilder builder, Process process) { this.builder = builder; String jar = findBytemanJar(); - port = NetworkUtils.INSTANCE.getNextAvailablePort(InetAddress.getLoopbackAddress()); + port = NetworkUtilsImpl.INSTANCE.getNextAvailablePort(InetAddress.getLoopbackAddress()); String bytemanArg = format("-javaagent:%s=boot:%s,port:%d", jar, jar, port); builder.setServerProperty(process.argument, bytemanArg); } diff --git a/tests/src/test/java/org/sonarqube/tests/settings/ElasticsearchSettingsTest.java b/tests/src/test/java/org/sonarqube/tests/settings/ElasticsearchSettingsTest.java index 0c046076021..7a2bb9eec16 100644 --- a/tests/src/test/java/org/sonarqube/tests/settings/ElasticsearchSettingsTest.java +++ b/tests/src/test/java/org/sonarqube/tests/settings/ElasticsearchSettingsTest.java @@ -25,7 +25,7 @@ import com.sonar.orchestrator.http.HttpResponse; import java.net.InetAddress; import okhttp3.HttpUrl; import org.junit.Test; -import org.sonar.process.NetworkUtils; +import org.sonar.process.NetworkUtilsImpl; import static org.assertj.core.api.Assertions.assertThat; @@ -33,7 +33,7 @@ public class ElasticsearchSettingsTest { @Test public void set_http_port_through_sonar_properties() throws Exception { - int port = NetworkUtils.INSTANCE.getNextAvailablePort(InetAddress.getLoopbackAddress()); + int port = NetworkUtilsImpl.INSTANCE.getNextAvailablePort(InetAddress.getLoopbackAddress()); Orchestrator orchestrator = Orchestrator .builderEnv() .setServerProperty("sonar.search.httpPort", "" + port) |