From 30db273c743f85891db296e66694835a5d524b4d Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 22 May 2017 09:26:51 +0200 Subject: SONAR-9245 facet new_lines in search_projects WS --- .../src/test/java/it/projectSearch/SearchProjectsTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'it/it-tests/src') 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) { -- cgit v1.2.3