From 3f9ed2570796ab50e6684198721c6e43f5fc5be2 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 7 Jun 2013 17:53:48 +0200 Subject: SONAR-3755 Role required to find issues should be USER instead of CODE VIEWER --- sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java | 3 ++- .../src/test/java/org/sonar/api/issue/IssueQueryTest.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sonar-plugin-api/src') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java index 761c2b8294f..5daf278f46a 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java @@ -27,6 +27,7 @@ import org.sonar.api.web.UserRole; import javax.annotation.CheckForNull; import javax.annotation.Nullable; + import java.util.Collection; import java.util.Date; import java.util.Set; @@ -218,7 +219,7 @@ public class IssueQuery { private Boolean asc = false; private Integer pageSize; private Integer pageIndex; - private String requiredRole = UserRole.CODEVIEWER; + private String requiredRole = UserRole.USER; private Builder() { } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java index 5792dc0f63a..3ee45572a6c 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java @@ -52,7 +52,7 @@ public class IssueQueryTest { .sort(IssueQuery.SORT_BY_ASSIGNEE) .pageSize(10) .pageIndex(2) - .requiredRole(UserRole.CODEVIEWER) + .requiredRole(UserRole.USER) .build(); assertThat(query.issueKeys()).containsOnly("ABCDE"); assertThat(query.severities()).containsOnly(Severity.BLOCKER); @@ -70,7 +70,7 @@ public class IssueQueryTest { assertThat(query.sort()).isEqualTo(IssueQuery.SORT_BY_ASSIGNEE); assertThat(query.pageSize()).isEqualTo(10); assertThat(query.pageIndex()).isEqualTo(2); - assertThat(query.requiredRole()).isEqualTo(UserRole.CODEVIEWER); + assertThat(query.requiredRole()).isEqualTo(UserRole.USER); } @Test -- cgit v1.2.3