diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-07 17:53:48 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-07 17:53:48 +0200 |
commit | 3f9ed2570796ab50e6684198721c6e43f5fc5be2 (patch) | |
tree | 347fc1b473de59666a4a4b1d5730c2f9c9f49c3a /sonar-plugin-api/src | |
parent | b2c43d4ba71d645a54ad211e66a8941e31c09ca3 (diff) | |
download | sonarqube-3f9ed2570796ab50e6684198721c6e43f5fc5be2.tar.gz sonarqube-3f9ed2570796ab50e6684198721c6e43f5fc5be2.zip |
SONAR-3755 Role required to find issues should be USER instead of CODE VIEWER
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java | 3 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java | 4 |
2 files changed, 4 insertions, 3 deletions
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 |