aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-08 15:11:13 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-09 16:47:34 +0100
commitf0506597c511931df357d58690e45d872aeba0df (patch)
tree971dc05ab5d4f2175311929b591e36726010c57e /sonar-core/src
parent003b0805e5869fa9430ba95a3ac408d30b6a13d8 (diff)
downloadsonarqube-f0506597c511931df357d58690e45d872aeba0df.tar.gz
sonarqube-f0506597c511931df357d58690e45d872aeba0df.zip
SONAR-8355 Remove property 'supportsMeasureFilters' from ResourceType API
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java7
-rw-r--r--sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java11
2 files changed, 0 insertions, 18 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
index 03fe1f5d58f..b28f8793095 100644
--- a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
+++ b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java
@@ -31,7 +31,6 @@ import org.sonar.api.server.ServerSide;
@ComputeEngineSide
public final class DefaultResourceTypes {
- private static final String SUPPORTS_MEASURE_FILTERS = "supportsMeasureFilters";
private static final String CONFIGURABLE = "configurable";
private static final String UPDATABLE_KEY = "updatable_key";
@@ -43,29 +42,23 @@ public final class DefaultResourceTypes {
return ResourceTypeTree.builder()
.addType(ResourceType.builder(Qualifiers.PROJECT)
.setProperty("deletable", true)
- .setProperty("supportsGlobalDashboards", true)
.setProperty("modifiable_history", true)
.setProperty("hasRolePolicy", true)
.setProperty(UPDATABLE_KEY, true)
- .setProperty(SUPPORTS_MEASURE_FILTERS, true)
.setProperty("comparable", true)
.setProperty(CONFIGURABLE, true)
.build())
.addType(ResourceType.builder(Qualifiers.MODULE)
.setProperty(UPDATABLE_KEY, true)
- .setProperty(SUPPORTS_MEASURE_FILTERS, true)
.setProperty(CONFIGURABLE, true)
.build())
.addType(ResourceType.builder(Qualifiers.DIRECTORY)
- .setProperty(SUPPORTS_MEASURE_FILTERS, true)
.build())
.addType(ResourceType.builder(Qualifiers.FILE)
.hasSourceCode()
- .setProperty(SUPPORTS_MEASURE_FILTERS, true)
.build())
.addType(ResourceType.builder(Qualifiers.UNIT_TEST_FILE)
.hasSourceCode()
- .setProperty(SUPPORTS_MEASURE_FILTERS, true)
.build())
.addRelations(Qualifiers.PROJECT, Qualifiers.MODULE)
diff --git a/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java b/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java
index 8d1557b43fe..6705eeb09bb 100644
--- a/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java
@@ -21,7 +21,6 @@ package org.sonar.core.component;
import org.junit.Test;
import org.sonar.api.resources.Qualifiers;
-import org.sonar.api.resources.ResourceType;
import org.sonar.api.resources.ResourceTypeTree;
import static org.assertj.core.api.Assertions.assertThat;
@@ -34,14 +33,4 @@ public class DefaultResourceTypesTest {
assertThat(tree.getTypes()).hasSize(5);
assertThat(tree.getChildren(Qualifiers.PROJECT)).containsExactly(Qualifiers.MODULE);
}
-
- @Test
- public void projects_should_be_available_for_global_widgets() {
- ResourceTypeTree tree = DefaultResourceTypes.get();
-
- ResourceType projectResourceType = tree.getTypes().get(0);
-
- assertThat(projectResourceType.getQualifier()).isEqualTo(Qualifiers.PROJECT);
- assertThat(projectResourceType.getBooleanProperty("supportsGlobalDashboards")).isTrue();
- }
}