aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-03 17:27:29 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-03-03 17:28:54 +0100
commitf24695d415017ec78e7bc28676715fa136c0efa6 (patch)
tree8ef9ce30943b2d9281ab8d7ecd9a087e36db2ab7 /sonar-ws-client
parent9590f2207c793dad39f14f8c516479fce8549958 (diff)
downloadsonarqube-f24695d415017ec78e7bc28676715fa136c0efa6.tar.gz
sonarqube-f24695d415017ec78e7bc28676715fa136c0efa6.zip
Update groupId to subProjectId and rootIt to projectId in issues WS
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java8
-rw-r--r--sonar-ws-client/src/test/java/org/sonar/wsclient/issue/internal/IssueJsonParserTest.java4
-rw-r--r--sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-components.json4
3 files changed, 8 insertions, 8 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
index 29680c2d21b..c184f9b4ae2 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
@@ -60,16 +60,16 @@ public class Component {
* @since 4.2
*/
@CheckForNull
- public Long groupId() {
- return JsonUtils.getLong(json, "groupId");
+ public Long subProjectId() {
+ return JsonUtils.getLong(json, "subProjectId");
}
/**
* @since 4.2
*/
@CheckForNull
- public Long rootId() {
- return JsonUtils.getLong(json, "rootId");
+ public Long projectId() {
+ return JsonUtils.getLong(json, "projectId");
}
/**
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 bd6c2f81b16..5440852389b 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
@@ -165,8 +165,8 @@ public class IssueJsonParserTest {
assertThat(component.qualifier()).isEqualTo("CLA");
assertThat(component.name()).isEqualTo("Action");
assertThat(component.longName()).isEqualTo("org.struts.Action");
- assertThat(component.groupId()).isEqualTo(2L);
- assertThat(component.rootId()).isEqualTo(1L);
+ assertThat(component.subProjectId()).isEqualTo(2L);
+ assertThat(component.projectId()).isEqualTo(1L);
}
@Test
diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-components.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-components.json
index c0b649fdd29..685063b6edb 100644
--- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-components.json
+++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-components.json
@@ -40,8 +40,8 @@
"name": "Action",
"qualifier": "CLA",
"longName": "org.struts.Action",
- "groupId" : 2,
- "rootId" : 1
+ "subProjectId" : 2,
+ "projectId" : 1
}
],
"paging": {