aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-12-04 15:19:04 +0100
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-12-06 14:40:17 +0100
commit2259c6808e011a95fa1d0b8e5681f507befdb4e9 (patch)
treed016cba1c9c3a4f103be3a1b5d25dee709395141 /tests
parentb6514bf56a49f3e9ad9bd9593e9c678284cfcbf7 (diff)
downloadsonarqube-2259c6808e011a95fa1d0b8e5681f507befdb4e9.tar.gz
sonarqube-2259c6808e011a95fa1d0b8e5681f507befdb4e9.zip
Remove deprecated ProjectAnalysisService
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDateQPChangedTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDateQPChangedTest.java b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDateQPChangedTest.java
index c50bd459e95..43dbee9f167 100644
--- a/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDateQPChangedTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/issue/IssueCreationDateQPChangedTest.java
@@ -37,7 +37,7 @@ import org.junit.Test;
import org.sonar.wsclient.issue.Issue;
import org.sonar.wsclient.issue.IssueQuery;
import org.sonarqube.ws.ProjectAnalyses;
-import org.sonarqube.ws.client.projectanalysis.SearchRequest;
+import org.sonarqube.ws.client.projectanalyses.SearchRequest;
import util.ItUtils;
import static org.assertj.core.api.Assertions.assertThat;
@@ -358,8 +358,8 @@ public class IssueCreationDateQPChangedTest extends AbstractIssueTest {
private static Date getAnalysisDate(Function<List<ProjectAnalyses.Analysis>, Optional<ProjectAnalyses.Analysis>> chooseItem) {
return Optional.of(
ItUtils.newWsClient(ORCHESTRATOR)
- .projectAnalysisOld()
- .search(SearchRequest.builder().setProject(SAMPLE_PROJECT_KEY).build())
+ .projectAnalyses()
+ .search(new SearchRequest().setProject(SAMPLE_PROJECT_KEY))
.getAnalysesList())
.flatMap(chooseItem)
.map(ProjectAnalyses.Analysis::getDate)