diff options
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.java | 16 |
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 bd3803a7eb1..89613f6bba0 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 WsRequest newGetCeTaskRequest() { - return argThat(new WsRequestPathMatcher("api/ce/task")); + private GetRequest newGetCeTaskRequest() { + return argThat(new GetRequestPathMatcher("api/ce/task")); } private MockWsResponse getCeTaskWsResponse(TaskStatus status) { @@ -302,8 +302,8 @@ public class QualityGateCheckTest { .isInstanceOf(IllegalStateException.class); } - private WsRequest newGetQualityGateRequest() { - return argThat(new WsRequestPathMatcher("api/qualitygates/project_status")); + private GetRequest newGetQualityGateRequest() { + return argThat(new GetRequestPathMatcher("api/qualitygates/project_status")); } private MockWsResponse getQualityGateWsResponse(Status status) { @@ -325,15 +325,15 @@ public class QualityGateCheckTest { }; } - private static class WsRequestPathMatcher implements ArgumentMatcher<WsRequest> { + private static class GetRequestPathMatcher implements ArgumentMatcher<GetRequest> { String path; - WsRequestPathMatcher(String path) { + GetRequestPathMatcher(String path) { this.path = path; } @Override - public boolean matches(WsRequest right) { + public boolean matches(GetRequest right) { return path.equals(right.getPath()); } } |