aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-22 12:06:38 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-22 12:06:38 +0200
commit617bd05a326531e8d64faa8ba0bf54fbe0bce421 (patch)
treed8856eaf58d3db52f6610f451506d29a76d7d672 /sonar-plugin-api/src/test
parentcc5bd59de2151261944161f5324e0adc329a8cd2 (diff)
downloadsonarqube-617bd05a326531e8d64faa8ba0bf54fbe0bce421.tar.gz
sonarqube-617bd05a326531e8d64faa8ba0bf54fbe0bce421.zip
ONAR-5132 Issues search WS should allow to search by language
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/issue/IssueQueryTest.java5
1 files changed, 5 insertions, 0 deletions
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 75b12dedb05..933934f838f 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
@@ -47,6 +47,7 @@ public class IssueQueryTest {
.actionPlans(newArrayList("AP1", "AP2"))
.reporters(newArrayList("crunky"))
.assignees(newArrayList("gargantua"))
+ .languages(newArrayList("xoo"))
.assigned(true)
.hideRules(true)
.createdAfter(new Date())
@@ -68,6 +69,7 @@ public class IssueQueryTest {
assertThat(query.componentRoots()).containsOnly("org.struts:core");
assertThat(query.reporters()).containsOnly("crunky");
assertThat(query.assignees()).containsOnly("gargantua");
+ assertThat(query.languages()).containsOnly("xoo");
assertThat(query.assigned()).isTrue();
assertThat(query.hideRules()).isTrue();
assertThat(query.rules()).containsOnly(RuleKey.of("squid", "AvoidCycle"));
@@ -123,6 +125,7 @@ public class IssueQueryTest {
.resolutions(null)
.rules(null)
.severities(null)
+ .languages(null)
.build();
assertThat(query.issueKeys()).isEmpty();
assertThat(query.components()).isEmpty();
@@ -134,6 +137,7 @@ public class IssueQueryTest {
assertThat(query.resolutions()).isEmpty();
assertThat(query.rules()).isEmpty();
assertThat(query.severities()).isEmpty();
+ assertThat(query.languages()).isEmpty();
}
@Test
@@ -149,6 +153,7 @@ public class IssueQueryTest {
assertThat(query.resolutions()).isEmpty();
assertThat(query.rules()).isEmpty();
assertThat(query.severities()).isEmpty();
+ assertThat(query.languages()).isEmpty();
assertThat(query.assigned()).isNull();
assertThat(query.createdAfter()).isNull();
assertThat(query.createdBefore()).isNull();