aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/java/org
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-01-17 16:03:25 +0100
committerSonarTech <sonartech@sonarsource.com>2019-01-17 20:21:00 +0100
commitb5cc29188339a2bf7187de25be38853553a81482 (patch)
tree53d8a0c81a324ae2da694f7e71fa06179f4c33fe /sonar-ws/src/main/java/org
parent51578709a9f2168f6774de9da88ad5975b9455fd (diff)
downloadsonarqube-b5cc29188339a2bf7187de25be38853553a81482.tar.gz
sonarqube-b5cc29188339a2bf7187de25be38853553a81482.zip
SONAR-11632 Remove api/tests WS
- Drop api/tests WS - Drop persistance of tests and coverage details from compute engine - Drop tests and coverage details from scanner report
Diffstat (limited to 'sonar-ws/src/main/java/org')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java8
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java3
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/tests/CoveredFilesRequest.java74
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/tests/ListRequest.java166
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/tests/TestsService.java84
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/tests/package-info.java26
6 files changed, 0 insertions, 361 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java
index ae692ccc111..d83de740725 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java
@@ -65,7 +65,6 @@ import org.sonarqube.ws.client.settings.SettingsService;
import org.sonarqube.ws.client.sources.SourcesService;
import org.sonarqube.ws.client.support.SupportService;
import org.sonarqube.ws.client.system.SystemService;
-import org.sonarqube.ws.client.tests.TestsService;
import org.sonarqube.ws.client.timemachine.TimemachineService;
import org.sonarqube.ws.client.updatecenter.UpdatecenterService;
import org.sonarqube.ws.client.usergroups.UserGroupsService;
@@ -130,7 +129,6 @@ class DefaultWsClient implements WsClient {
private final SourcesService sourcesService;
private final SupportService supportService;
private final SystemService systemService;
- private final TestsService testsService;
private final TimemachineService timemachineService;
private final UpdatecenterService updatecenterService;
private final UserGroupsService userGroupsService;
@@ -189,7 +187,6 @@ class DefaultWsClient implements WsClient {
this.sourcesService = new SourcesService(wsConnector);
this.supportService = new SupportService(wsConnector);
this.systemService = new SystemService(wsConnector);
- this.testsService = new TestsService(wsConnector);
this.timemachineService = new TimemachineService(wsConnector);
this.updatecenterService = new UpdatecenterService(wsConnector);
this.userGroupsService = new UserGroupsService(wsConnector);
@@ -425,11 +422,6 @@ class DefaultWsClient implements WsClient {
}
@Override
- public TestsService tests() {
- return testsService;
- }
-
- @Override
public TimemachineService timemachine() {
return timemachineService;
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java
index 63e9c82d115..30df290cd00 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java
@@ -65,7 +65,6 @@ import org.sonarqube.ws.client.settings.SettingsService;
import org.sonarqube.ws.client.sources.SourcesService;
import org.sonarqube.ws.client.support.SupportService;
import org.sonarqube.ws.client.system.SystemService;
-import org.sonarqube.ws.client.tests.TestsService;
import org.sonarqube.ws.client.timemachine.TimemachineService;
import org.sonarqube.ws.client.updatecenter.UpdatecenterService;
import org.sonarqube.ws.client.usergroups.UserGroupsService;
@@ -185,8 +184,6 @@ public interface WsClient {
SystemService system();
- TestsService tests();
-
TimemachineService timemachine();
UpdatecenterService updatecenter();
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/CoveredFilesRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/CoveredFilesRequest.java
deleted file mode 100644
index 0d92feb0f8e..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/CoveredFilesRequest.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.tests;
-
-import java.util.List;
-import javax.annotation.Generated;
-
-/**
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests/covered_files">Further information about this action online (including a response example)</a>
- * @since 4.4
- */
-@Generated("sonar-ws-generator")
-public class CoveredFilesRequest {
-
- private String p;
- private String ps;
- private String testId;
-
- /**
- * Example value: "42"
- */
- public CoveredFilesRequest setP(String p) {
- this.p = p;
- return this;
- }
-
- public String getP() {
- return p;
- }
-
- /**
- * Example value: "20"
- */
- public CoveredFilesRequest setPs(String ps) {
- this.ps = ps;
- return this;
- }
-
- public String getPs() {
- return ps;
- }
-
- /**
- * This is a mandatory parameter.
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- */
- public CoveredFilesRequest setTestId(String testId) {
- this.testId = testId;
- return this;
- }
-
- public String getTestId() {
- return testId;
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/ListRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/ListRequest.java
deleted file mode 100644
index be4cdf99fdd..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/ListRequest.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.tests;
-
-import java.util.List;
-import javax.annotation.Generated;
-
-/**
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests/list">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
-@Generated("sonar-ws-generator")
-public class ListRequest {
-
- private String branch;
- private String p;
- private String ps;
- private String pullRequest;
- private String sourceFileId;
- private String sourceFileKey;
- private String sourceFileLineNumber;
- private String testFileId;
- private String testFileKey;
- private String testId;
-
- /**
- * This is part of the internal API.
- * Example value: "feature/my_branch"
- */
- public ListRequest setBranch(String branch) {
- this.branch = branch;
- return this;
- }
-
- public String getBranch() {
- return branch;
- }
-
- /**
- * Example value: "42"
- */
- public ListRequest setP(String p) {
- this.p = p;
- return this;
- }
-
- public String getP() {
- return p;
- }
-
- /**
- * Example value: "20"
- */
- public ListRequest setPs(String ps) {
- this.ps = ps;
- return this;
- }
-
- public String getPs() {
- return ps;
- }
-
- /**
- * This is part of the internal API.
- * Example value: "5461"
- */
- public ListRequest setPullRequest(String pullRequest) {
- this.pullRequest = pullRequest;
- return this;
- }
-
- public String getPullRequest() {
- return pullRequest;
- }
-
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FL0"
- */
- public ListRequest setSourceFileId(String sourceFileId) {
- this.sourceFileId = sourceFileId;
- return this;
- }
-
- public String getSourceFileId() {
- return sourceFileId;
- }
-
- /**
- * Example value: "my_project:/src/foo/Bar.php"
- */
- public ListRequest setSourceFileKey(String sourceFileKey) {
- this.sourceFileKey = sourceFileKey;
- return this;
- }
-
- public String getSourceFileKey() {
- return sourceFileKey;
- }
-
- /**
- * Example value: "10"
- */
- public ListRequest setSourceFileLineNumber(String sourceFileLineNumber) {
- this.sourceFileLineNumber = sourceFileLineNumber;
- return this;
- }
-
- public String getSourceFileLineNumber() {
- return sourceFileLineNumber;
- }
-
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- */
- public ListRequest setTestFileId(String testFileId) {
- this.testFileId = testFileId;
- return this;
- }
-
- public String getTestFileId() {
- return testFileId;
- }
-
- /**
- * Example value: "MY_PROJECT:src/test/java/foo/BarTest.java"
- */
- public ListRequest setTestFileKey(String testFileKey) {
- this.testFileKey = testFileKey;
- return this;
- }
-
- public String getTestFileKey() {
- return testFileKey;
- }
-
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FLz"
- */
- public ListRequest setTestId(String testId) {
- this.testId = testId;
- return this;
- }
-
- public String getTestId() {
- return testId;
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/TestsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/TestsService.java
deleted file mode 100644
index f1f4fbd6296..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/TestsService.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.tests;
-
-import java.util.stream.Collectors;
-import javax.annotation.Generated;
-import org.sonarqube.ws.MediaTypes;
-import org.sonarqube.ws.client.BaseService;
-import org.sonarqube.ws.client.GetRequest;
-import org.sonarqube.ws.client.PostRequest;
-import org.sonarqube.ws.client.WsConnector;
-import org.sonarqube.ws.Tests.CoveredFilesResponse;
-import org.sonarqube.ws.Tests.ListResponse;
-
-/**
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests">Further information about this web service online</a>
- */
-@Generated("sonar-ws-generator")
-public class TestsService extends BaseService {
-
- public TestsService(WsConnector wsConnector) {
- super(wsConnector, "api/tests");
- }
-
- /**
- *
- * This is part of the internal API.
- * This is a GET request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests/covered_files">Further information about this action online (including a response example)</a>
- * @since 4.4
- * @deprecated since 5.6
- */
- @Deprecated
- public CoveredFilesResponse coveredFiles(CoveredFilesRequest request) {
- return call(
- new GetRequest(path("covered_files"))
- .setParam("p", request.getP())
- .setParam("ps", request.getPs())
- .setParam("testId", request.getTestId()),
- CoveredFilesResponse.parser());
- }
-
- /**
- *
- * This is part of the internal API.
- * This is a GET request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests/list">Further information about this action online (including a response example)</a>
- * @since 5.2
- * @deprecated since 5.6
- */
- @Deprecated
- public ListResponse list(ListRequest request) {
- return call(
- new GetRequest(path("list"))
- .setParam("branch", request.getBranch())
- .setParam("p", request.getP())
- .setParam("ps", request.getPs())
- .setParam("pullRequest", request.getPullRequest())
- .setParam("sourceFileId", request.getSourceFileId())
- .setParam("sourceFileKey", request.getSourceFileKey())
- .setParam("sourceFileLineNumber", request.getSourceFileLineNumber())
- .setParam("testFileId", request.getTestFileId())
- .setParam("testFileKey", request.getTestFileKey())
- .setParam("testId", request.getTestId()),
- ListResponse.parser());
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/package-info.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/package-info.java
deleted file mode 100644
index 1ece80e6cc3..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/tests/package-info.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-@ParametersAreNonnullByDefault
-@Generated("sonar-ws-generator")
-package org.sonarqube.ws.client.tests;
-
-import javax.annotation.ParametersAreNonnullByDefault;
-import javax.annotation.Generated;
-