aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-06 10:35:58 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-01-06 10:40:10 +0100
commite4997a027cf4fe067e8b7da6599b389b190cd7f1 (patch)
treeb29899dd8b39450554ec5cdc6011b76eed17bf06 /server
parentcfbc559a560d989ad9127e8af143640cbd52cc06 (diff)
downloadsonarqube-e4997a027cf4fe067e8b7da6599b389b190cd7f1.tar.gz
sonarqube-e4997a027cf4fe067e8b7da6599b389b190cd7f1.zip
SONAR-5941 add component key
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java1
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension.json22
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension_having_permission.json22
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures.json32
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures_when_period_is_set.json34
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_it_measure.json1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_manual_rules.json22
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures_when_period_is_set.json30
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_overall_measure.json1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_periods.json21
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules.json21
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules_when_period_is_set.json23
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities.json21
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities_when_period_is_set.json23
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_sub_project_equals_to_project.json16
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tabs.json24
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tests_measure.json20
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_ut_measure.json1
-rw-r--r--server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_without_sub_project.json16
22 files changed, 6 insertions, 348 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java
index 34872621bb1..c5132c9c934 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java
@@ -128,6 +128,7 @@ public class ComponentAppAction implements RequestHandler {
);
boolean isFavourite = propertyDtos.size() == 1;
+ json.prop("key", component.key());
json.prop("uuid", component.uuid());
json.prop("path", component.path());
json.prop("name", component.name());
diff --git a/server/sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java
index af7964d51c1..4f1ddb7aeb6 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java
@@ -39,7 +39,6 @@ import org.sonar.core.persistence.DbSession;
import org.sonar.core.properties.PropertiesDao;
import org.sonar.core.properties.PropertyDto;
import org.sonar.core.properties.PropertyQuery;
-import org.sonar.core.resource.ResourceDao;
import org.sonar.server.component.ComponentTesting;
import org.sonar.server.component.db.ComponentDao;
import org.sonar.server.db.DbClient;
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json
index 5635baae3f9..201fc70537f 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json
+++ b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json
@@ -1,4 +1,5 @@
{
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
"uuid": "ABCDE",
"path": "src/main/java/org/sonar/api/Plugin.java",
"name": "Plugin.java",
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension.json
deleted file mode 100644
index c0b27c2ef04..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {},
- "extensions": [
- ["my-extension", "My extension"]
- ]
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension_having_permission.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension_having_permission.json
deleted file mode 100644
index 6d72995e309..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension_having_permission.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {},
- "extensions": [
- ["my-extension-with-permission", "My extension with permission"]
- ]
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures.json
deleted file mode 100644
index 6e688c0dc30..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [
- ["BLOCKER", "Blocker", 1],
- ["CRITICAL", "Critical", 2],
- ["MAJOR", "Major", 5],
- ["MINOR", "Minor", 4],
- ["INFO", "Info", 2]
- ],
- "rules": [],
- "measures": {
- "fIssues": "14",
- "fBlockerIssues": "1",
- "fCriticalIssues": "2",
- "fMajorIssues": "5",
- "fMinorIssues": "4",
- "fInfoIssues": "2"
- }
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures_when_period_is_set.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures_when_period_is_set.json
deleted file mode 100644
index dcd18686119..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures_when_period_is_set.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [1, "since previous analysis (May 08 2014)", "2014-05-08T00:00:00+0200"]
- ],
- "severities": [
- ["BLOCKER", "Blocker", 1],
- ["CRITICAL", "Critical", 2],
- ["MAJOR", "Major", 5],
- ["MINOR", "Minor", 4],
- ["INFO", "Info", 2]
- ],
- "rules": [],
- "measures": {
- "fIssues": "14",
- "fBlockerIssues": "1",
- "fCriticalIssues": "2",
- "fMajorIssues": "5",
- "fMinorIssues": "4",
- "fInfoIssues": "2"
- }
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_it_measure.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_it_measure.json
index ba6e4d0f38f..0b233ce08e2 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_it_measure.json
+++ b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_it_measure.json
@@ -1,4 +1,5 @@
{
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
"uuid": "ABCDE",
"path": "src/main/java/org/sonar/api/Plugin.java",
"name": "Plugin.java",
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_manual_rules.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_manual_rules.json
deleted file mode 100644
index d70a86c1e39..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_manual_rules.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {},
- "manual_rules": [
- {"key": "manual:API", "name": "API"}
- ]
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json
index bf8dd6ca069..606f6594f53 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json
+++ b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json
@@ -1,4 +1,5 @@
{
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
"uuid": "ABCDE",
"path": "src/main/java/org/sonar/api/Plugin.java",
"name": "Plugin.java",
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures_when_period_is_set.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures_when_period_is_set.json
deleted file mode 100644
index 41501a758ab..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures_when_period_is_set.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [1, "since previous analysis (May 08 2014)", "2014-05-08T00:00:00+0200"]
- ],
- "severities": [],
- "rules": [],
- "measures": {
- "fNcloc": "2",
- "fCoverage": "5.0",
- "fDuplicationDensity": "1.2",
- "fDebt": "10min",
- "fSqaleDebtRatio" : "5.0"
- },
- "tabs": [
- "coverage"
- ]
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_overall_measure.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_overall_measure.json
index 4d88e759614..7cc5aedb715 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_overall_measure.json
+++ b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_overall_measure.json
@@ -1,4 +1,5 @@
{
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
"uuid": "ABCDE",
"path": "src/main/java/org/sonar/api/Plugin.java",
"name": "Plugin.java",
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_periods.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_periods.json
deleted file mode 100644
index 90ff42e90a0..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_periods.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [1, "since previous analysis (May 08 2014)", "2014-05-08T00:00:00+0200"]
- ],
- "severities": [],
- "rules": [],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules.json
deleted file mode 100644
index 69a3163fddb..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [
- ["squid:AvoidCycle", "Avoid Cycle", 1]
- ],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules_when_period_is_set.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules_when_period_is_set.json
deleted file mode 100644
index 9bcea6b0651..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules_when_period_is_set.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [1, "since previous analysis (May 08 2014)", "2014-05-08T00:00:00+0200"]
- ],
- "severities": [],
- "rules": [
- ["squid:AvoidCycle", "Avoid Cycle", 1]
- ],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities.json
deleted file mode 100644
index 55a6f96ed74..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [
- ["MAJOR", "Major", 5]
- ],
- "rules": [],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities_when_period_is_set.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities_when_period_is_set.json
deleted file mode 100644
index 567ee9c2c6b..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities_when_period_is_set.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [1, "since previous analysis (May 08 2014)", "2014-05-08T00:00:00+0200"]
- ],
- "severities": [
- ["MAJOR", "Major", 5]
- ],
- "rules": [],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_sub_project_equals_to_project.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_sub_project_equals_to_project.json
deleted file mode 100644
index c535c2ac6d1..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_sub_project_equals_to_project.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "project" : "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": true,
- "canMarkAsFavourite": true,
- "canBulkChange": true,
- "canCreateManualIssue": true,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {}
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tabs.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tabs.json
deleted file mode 100644
index 3288f4217ab..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tabs.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
- "longName": "src/main/java/org/sonar/api/Plugin.java",
- "path": "src/main/java/org/sonar/api/Plugin.java",
- "name": "Plugin.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {
- "fCoverage": "1.0%"
- },
- "tabs": [
- "scm", "coverage", "duplications"
- ]
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tests_measure.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tests_measure.json
deleted file mode 100644
index 70ed990402d..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tests_measure.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-server:src/test/java/org/sonar/server/issue/PlanActionTest.java",
- "path": "src/test/java/org/sonar/server/issue/PlanActionTest.java",
- "name": "PlanActionTest.java",
- "q": "UTS",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {
- "fTests": "10"
- }
-}
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_ut_measure.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_ut_measure.json
index 70f632d334a..c6ef590ad5d 100644
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_ut_measure.json
+++ b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_ut_measure.json
@@ -1,4 +1,5 @@
{
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java",
"uuid": "ABCDE",
"path": "src/main/java/org/sonar/api/Plugin.java",
"name": "Plugin.java",
diff --git a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_without_sub_project.json b/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_without_sub_project.json
deleted file mode 100644
index b2fefdf39fa..00000000000
--- a/server/sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_without_sub_project.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar",
- "name": "SonarQube",
- "longName": "SonarQube",
- "q": "TRK",
- "project" : "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": true,
- "canMarkAsFavourite": true,
- "canBulkChange": true,
- "canCreateManualIssue": true,
- "periods": [],
- "severities": [],
- "rules": [],
- "measures": {}
-}