diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-09-22 17:10:27 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-09-22 18:22:45 +0200 |
commit | 89d60bf5077d6732ec3259cb20d2b14e3e7b8631 (patch) | |
tree | 01a70dc0e936c0dd7159ee8c7bbac5f732f44e78 /sonar-core/src/test | |
parent | 205b4e422fa3ad3f6b65d4e07b0fe0757b88a874 (diff) | |
download | sonarqube-89d60bf5077d6732ec3259cb20d2b14e3e7b8631.tar.gz sonarqube-89d60bf5077d6732ec3259cb20d2b14e3e7b8631.zip |
SONAR-5531 Support paging, querying by rules and languages in Issues search WS
Diffstat (limited to 'sonar-core/src/test')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/db/IssueDtoTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueDtoTest.java b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueDtoTest.java index ddda3b57f71..791c7125556 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueDtoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueDtoTest.java @@ -59,6 +59,7 @@ public class IssueDtoTest { .setKee("100") .setRuleId(1) .setRuleKey("squid", "AvoidCycle") + .setLanguage("xoo") .setComponentKey("org.sonar.sample:Sample") .setRootComponentKey("org.sonar.sample") .setComponentId(1l) @@ -82,6 +83,7 @@ public class IssueDtoTest { DefaultIssue issue = dto.toDefaultIssue(); assertThat(issue.key()).isEqualTo("100"); assertThat(issue.ruleKey().toString()).isEqualTo("squid:AvoidCycle"); + assertThat(issue.language()).isEqualTo("xoo"); assertThat(issue.componentKey()).isEqualTo("org.sonar.sample:Sample"); assertThat(issue.componentId()).isEqualTo(1L); assertThat(issue.projectKey()).isEqualTo("org.sonar.sample"); |