aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java3
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java4
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