aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-05-22 09:26:51 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 08:26:48 +0200
commit30db273c743f85891db296e66694835a5d524b4d (patch)
tree4bf6d1806fee0baca7b9bf1ad5db32115e17355d /it/it-tests/src
parent64a98a2f056a14390843c7769cb203647e88cc5b (diff)
downloadsonarqube-30db273c743f85891db296e66694835a5d524b4d.tar.gz
sonarqube-30db273c743f85891db296e66694835a5d524b4d.zip
SONAR-9245 facet new_lines in search_projects WS
Diffstat (limited to 'it/it-tests/src')
-rw-r--r--it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
index a4743dedc7b..46d30a139b6 100644
--- a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
+++ b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
@@ -200,7 +200,7 @@ public class SearchProjectsTest {
analyzeProject(projectKey, "shared/xoo-history-v2");
SearchProjectsWsResponse response = searchProjects(SearchProjectsRequest.builder().setOrganization(organizationKey).setFacets(asList(
- "new_reliability_rating", "new_security_rating", "new_maintainability_rating", "new_coverage", "new_duplicated_lines_density")).build());
+ "new_reliability_rating", "new_security_rating", "new_maintainability_rating", "new_coverage", "new_duplicated_lines_density", "new_lines")).build());
checkFacet(response, "new_reliability_rating",
tuple("1", 1L),
@@ -232,6 +232,12 @@ public class SearchProjectsTest {
tuple("5.0-10.0", 0L),
tuple("10.0-20.0", 0L),
tuple("20.0-*", 0L));
+ checkFacet(response, "new_lines",
+ tuple("*-1000.0", 0L),
+ tuple("1000.0-10000.0", 0L),
+ tuple("10000.0-100000.0", 0L),
+ tuple("100000.0-500000.0", 0L),
+ tuple("500000.0-*", 0L));
}
private void checkFacet(SearchProjectsWsResponse response, String facetKey, Tuple... values) {