aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-alm-client
diff options
context:
space:
mode:
authorJulien Camus <julien.camus@sonarsource.com>2024-12-17 18:22:05 +0100
committerSteve Marion <steve.marion@sonarsource.com>2024-12-18 11:13:24 +0100
commit9f14907cc3b7fde2ee00129dbc71e23a2f46bf7d (patch)
tree13eb3433a949a522fc5a0110af8a6e0b28e026f2 /server/sonar-alm-client
parent00b0b87104d93055e49860b9cc6ddcedeba362fd (diff)
downloadsonarqube-9f14907cc3b7fde2ee00129dbc71e23a2f46bf7d.tar.gz
sonarqube-9f14907cc3b7fde2ee00129dbc71e23a2f46bf7d.zip
SONAR-24003 Delete unnecessary imports
Diffstat (limited to 'server/sonar-alm-client')
-rw-r--r--server/sonar-alm-client/src/test/java/org/sonar/alm/client/GenericPaginatedHttpClientImplTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/GenericPaginatedHttpClientImplTest.java b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/GenericPaginatedHttpClientImplTest.java
index 0e4da3d8084..f62e3e3f1dd 100644
--- a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/GenericPaginatedHttpClientImplTest.java
+++ b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/GenericPaginatedHttpClientImplTest.java
@@ -22,7 +22,6 @@ package org.sonar.alm.client;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.List;
import java.util.Optional;
import org.junit.Rule;
@@ -34,8 +33,8 @@ import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.slf4j.event.Level;
-import org.sonar.auth.github.security.AccessToken;
import org.sonar.api.testfixtures.log.LogTester;
+import org.sonar.auth.github.security.AccessToken;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
@@ -151,7 +150,7 @@ public class GenericPaginatedHttpClientImplTest {
assertThatIllegalStateException()
.isThrownBy(() -> underTest.get(APP_URL, accessToken, ENDPOINT, result -> gson.fromJson(result, STRING_LIST_TYPE)))
.withMessage("SonarQube was not able to retrieve resources from external system. Error while executing a paginated call to https://github.com/, endpoint:/next-endpoint. "
- + "Error while executing a call to https://github.com/. Return code 400. Error message: failed.");
+ + "Error while executing a call to https://github.com/. Return code 400. Error message: failed.");
}
private static GetResponse mockFailedResponse(String content) {
@@ -186,11 +185,11 @@ public class GenericPaginatedHttpClientImplTest {
.isThrownBy(() -> underTest.get(APP_URL, accessToken, "query", mock()))
.isInstanceOf(IllegalStateException.class)
.withMessage("SonarQube was not able to retrieve resources from external system. Error while executing a paginated call to https://github.com/, "
- + "endpoint:query?per_page=100. error");
+ + "endpoint:query?per_page=100. error");
assertThat(logTester.logs()).hasSize(1);
assertThat(logTester.logs(Level.WARN))
.containsExactly("SonarQube was not able to retrieve resources from external system. "
- + "Error while executing a paginated call to https://github.com/, endpoint:query?per_page=100.");
+ + "Error while executing a paginated call to https://github.com/, endpoint:query?per_page=100.");
}
}