diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-12-29 16:11:34 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-29 20:03:08 +0000 |
commit | db1874af5166749a7259d1f26b6e646ce9db3502 (patch) | |
tree | 96e0eca27da169364468193f5477b8e637ef71d7 /server | |
parent | 4a1916621a67c1bbf45f41118787288a696a9a57 (diff) | |
download | sonarqube-db1874af5166749a7259d1f26b6e646ce9db3502.tar.gz sonarqube-db1874af5166749a7259d1f26b6e646ce9db3502.zip |
[NO-JIRA] Fix unittest that relies on no longer existing domain
Diffstat (limited to 'server')
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java index 52aa46cd632..c5fe9025a9a 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java @@ -108,7 +108,7 @@ public class WebhookCustomDnsTest { when(networkInterfaceProvider.getNetworkInterfaceAddresses()) .thenThrow(new SocketException()); - Assertions.assertThatThrownBy(() -> underTest.lookup("good-url.com")) + Assertions.assertThatThrownBy(() -> underTest.lookup("sonarsource.com")) .hasMessageContaining("Network interfaces could not be fetched.") .isInstanceOf(IllegalArgumentException.class); } diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/webhook/ws/WebhookSupportTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/webhook/ws/WebhookSupportTest.java index 9592d46438d..9caa0c77db3 100644 --- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/webhook/ws/WebhookSupportTest.java +++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/webhook/ws/WebhookSupportTest.java @@ -111,7 +111,7 @@ public class WebhookSupportTest { public void itThrowsIllegalExceptionIfGettingNetworkInterfaceAddressesFails() throws SocketException { when(networkInterfaceProvider.getNetworkInterfaceAddresses()).thenThrow(new SocketException()); - assertThatThrownBy(() -> underTest.checkUrlPattern("https://good-url.com", "msg")) + assertThatThrownBy(() -> underTest.checkUrlPattern("https://sonarsource.com", "msg")) .hasMessageContaining("Can not retrieve a network interfaces") .isInstanceOf(IllegalStateException.class); |