aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/test
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-17 15:28:42 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-17 15:29:48 +0100
commit2ec12bf1b6ea57eaaa2f1feae0df1b2f3f702d3c (patch)
treeb98ce17be026ece6d8255a9336e25e67ee710a30 /sonar-ws-client/src/test
parentac36bd23ad0dd1b312f28d6612f0f4a1b57fb41e (diff)
downloadsonarqube-2ec12bf1b6ea57eaaa2f1feae0df1b2f3f702d3c.tar.gz
sonarqube-2ec12bf1b6ea57eaaa2f1feae0df1b2f3f702d3c.zip
Add Issues.componentById() helper
Diffstat (limited to 'sonar-ws-client/src/test')
-rw-r--r--sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java
index 2ea31630d82..5e5948fcc6a 100644
--- a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java
+++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java
@@ -167,6 +167,8 @@ public class IssueJsonParserTest {
assertThat(component.longName()).isEqualTo("org.struts.Action");
assertThat(component.subProjectId()).isEqualTo(2L);
assertThat(component.projectId()).isEqualTo(1L);
+
+ assertThat(issues.componentById(10).key()).isEqualTo("struts:Action.java");
}
@Test