diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-05 13:37:25 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-09 11:41:05 +0100 |
commit | 0ea7c0cedcadefe53e5ea7aab1e66592c0cb9279 (patch) | |
tree | 0a2e73d6426086970cd82726b1436670f01202c6 /server/sonar-server-benchmarks | |
parent | 2d34b833738ddc86750d058aa11f1ffef75916c8 (diff) | |
download | sonarqube-0ea7c0cedcadefe53e5ea7aab1e66592c0cb9279.tar.gz sonarqube-0ea7c0cedcadefe53e5ea7aab1e66592c0cb9279.zip |
Refactor issue search stack in order to remove dependency with
SearchRequestHandler
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r-- | server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java index 64950c865d7..4d2a9de9f5b 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java @@ -34,14 +34,14 @@ import org.sonar.api.issue.Issue; import org.sonar.api.rule.Severity; import org.sonar.api.utils.internal.Uuids; import org.sonar.server.es.EsClient; +import org.sonar.server.es.SearchOptions; +import org.sonar.server.es.SearchResult; import org.sonar.server.issue.IssueQuery; import org.sonar.server.issue.index.IssueAuthorizationDao; import org.sonar.server.issue.index.IssueAuthorizationIndexer; import org.sonar.server.issue.index.IssueDoc; import org.sonar.server.issue.index.IssueIndex; import org.sonar.server.issue.index.IssueIndexer; -import org.sonar.server.search.QueryContext; -import org.sonar.server.search.Result; import org.sonar.server.tester.ServerTester; import org.sonar.server.user.MockUserSession; @@ -138,7 +138,7 @@ public class IssueIndexBenchmarkTest { IssueIndex index = tester.get(IssueIndex.class); for (int i = 0; i < 10; i++) { long start = System.currentTimeMillis(); - Result<Issue> result = index.search(query, new QueryContext()); + SearchResult<IssueDoc> result = index.search(query, new SearchOptions()); long end = System.currentTimeMillis(); LOGGER.info("Request (" + label + "): {} docs in {} ms", result.getTotal(), end - start); } |