aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2022-05-20 12:18:46 +0200
committersonartech <sonartech@sonarsource.com>2022-05-31 20:02:50 +0000
commit5dc735487ccaa4fd9557a2bc99b1654756c65d8d (patch)
tree163d8c5faf74096c50a87bc6247c0ffac76333e7 /sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java
parentcc058a386950f69d40a6d422f2927c3f92857724 (diff)
downloadsonarqube-5dc735487ccaa4fd9557a2bc99b1654756c65d8d.tar.gz
sonarqube-5dc735487ccaa4fd9557a2bc99b1654756c65d8d.zip
SONAR-16260 improve project analysis when using project analysis token
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java
index 89613f6bba0..bd3803a7eb1 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java
@@ -38,9 +38,9 @@ import org.sonarqube.ws.Ce;
import org.sonarqube.ws.Ce.TaskStatus;
import org.sonarqube.ws.Qualitygates;
import org.sonarqube.ws.Qualitygates.ProjectStatusResponse.Status;
-import org.sonarqube.ws.client.GetRequest;
import org.sonarqube.ws.client.HttpException;
import org.sonarqube.ws.client.MockWsResponse;
+import org.sonarqube.ws.client.WsRequest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -266,8 +266,8 @@ public class QualityGateCheckTest {
.hasMessageContaining("CE Task finished abnormally with status: " + taskStatus.name());
}
- private GetRequest newGetCeTaskRequest() {
- return argThat(new GetRequestPathMatcher("api/ce/task"));
+ private WsRequest newGetCeTaskRequest() {
+ return argThat(new WsRequestPathMatcher("api/ce/task"));
}
private MockWsResponse getCeTaskWsResponse(TaskStatus status) {
@@ -302,8 +302,8 @@ public class QualityGateCheckTest {
.isInstanceOf(IllegalStateException.class);
}
- private GetRequest newGetQualityGateRequest() {
- return argThat(new GetRequestPathMatcher("api/qualitygates/project_status"));
+ private WsRequest newGetQualityGateRequest() {
+ return argThat(new WsRequestPathMatcher("api/qualitygates/project_status"));
}
private MockWsResponse getQualityGateWsResponse(Status status) {
@@ -325,15 +325,15 @@ public class QualityGateCheckTest {
};
}
- private static class GetRequestPathMatcher implements ArgumentMatcher<GetRequest> {
+ private static class WsRequestPathMatcher implements ArgumentMatcher<WsRequest> {
String path;
- GetRequestPathMatcher(String path) {
+ WsRequestPathMatcher(String path) {
this.path = path;
}
@Override
- public boolean matches(GetRequest right) {
+ public boolean matches(WsRequest right) {
return path.equals(right.getPath());
}
}