aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'it/it-plugins')
-rw-r--r--it/it-plugins/dashboard-plugin/pom.xml37
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/java/FakeDashboardTemplate.java42
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/java/UiPlugin.java28
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/java/WidgetWithMandatoryProperties.java46
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin.properties1
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin_fr.properties1
-rw-r--r--it/it-plugins/dashboard-plugin/src/main/resources/widgets/widget-with-mandatory-properties.html.erb16
-rw-r--r--it/it-plugins/pom.xml1
-rw-r--r--it/it-plugins/server-plugin/src/main/java/ServerPlugin.java3
-rw-r--r--it/it-plugins/server-plugin/src/main/java/WidgetDisplayingProperties.java41
10 files changed, 2 insertions, 214 deletions
diff --git a/it/it-plugins/dashboard-plugin/pom.xml b/it/it-plugins/dashboard-plugin/pom.xml
deleted file mode 100644
index 4c322b75231..00000000000
--- a/it/it-plugins/dashboard-plugin/pom.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonarsource.sonarqube</groupId>
- <artifactId>it-plugins</artifactId>
- <version>6.2-SNAPSHOT</version>
- </parent>
-
- <artifactId>dashboard-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>sonar-plugin</packaging>
- <name>SonarQube Integration Tests :: Plugins :: UI</name>
- <description>Main plugin for UI tests</description>
-
- <dependencies>
- <dependency>
- <groupId>org.sonarsource.sonarqube</groupId>
- <artifactId>sonar-plugin-api</artifactId>
- <version>${apiVersion}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
- <artifactId>sonar-packaging-maven-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <pluginClass>UiPlugin</pluginClass>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/it/it-plugins/dashboard-plugin/src/main/java/FakeDashboardTemplate.java b/it/it-plugins/dashboard-plugin/src/main/java/FakeDashboardTemplate.java
deleted file mode 100644
index 581201a495e..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/java/FakeDashboardTemplate.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import org.sonar.api.web.Dashboard;
-import org.sonar.api.web.DashboardLayout;
-import org.sonar.api.web.DashboardTemplate;
-
-public class FakeDashboardTemplate extends DashboardTemplate {
-
- @Override
- public Dashboard createDashboard() {
- Dashboard dashboard = Dashboard.create()
- .setLayout(DashboardLayout.TWO_COLUMNS_30_70)
- .setDescription("Fake dashboard for integration tests");
- dashboard.addWidget("lcom4", 1);
- dashboard.addWidget("description", 1);
- dashboard.addWidget("documentation_comments", 2);
- dashboard.addWidget("complexity", 3); // should be ignored because the layout is 2 columns
- return dashboard;
- }
-
- @Override
- public String getName() {
- return "Fake";
- }
-}
diff --git a/it/it-plugins/dashboard-plugin/src/main/java/UiPlugin.java b/it/it-plugins/dashboard-plugin/src/main/java/UiPlugin.java
deleted file mode 100644
index 79495a14c55..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/java/UiPlugin.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import java.util.Arrays;
-import java.util.List;
-import org.sonar.api.SonarPlugin;
-
-public class UiPlugin extends SonarPlugin {
- public List getExtensions() {
- return Arrays.asList(FakeDashboardTemplate.class, WidgetWithMandatoryProperties.class);
- }
-}
diff --git a/it/it-plugins/dashboard-plugin/src/main/java/WidgetWithMandatoryProperties.java b/it/it-plugins/dashboard-plugin/src/main/java/WidgetWithMandatoryProperties.java
deleted file mode 100644
index eb966a33901..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/java/WidgetWithMandatoryProperties.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWidget;
-import org.sonar.api.web.WidgetProperties;
-import org.sonar.api.web.WidgetProperty;
-import org.sonar.api.web.WidgetPropertyType;
-
-@WidgetProperties({
- @WidgetProperty(key = "mandatoryString", optional = false),
- @WidgetProperty(key = "mandatoryInt", optional = false, type = WidgetPropertyType.INTEGER)
-
-})
-public class WidgetWithMandatoryProperties extends AbstractRubyTemplate implements RubyRailsWidget {
-
- public String getId() {
- return "widget-with-mandatory-properties";
- }
-
- public String getTitle() {
- return "Widget with Mandatory Properties";
- }
-
- @Override
- protected String getTemplatePath() {
- return "/widgets/widget-with-mandatory-properties.html.erb";
- }
-}
-
diff --git a/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin.properties b/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin.properties
deleted file mode 100644
index 8db961d7486..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin.properties
+++ /dev/null
@@ -1 +0,0 @@
-dashboard.Fake.name=Fake \ No newline at end of file
diff --git a/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin_fr.properties b/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin_fr.properties
deleted file mode 100644
index 4bbe9f6250b..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/resources/org/sonar/l10n/dashboardplugin_fr.properties
+++ /dev/null
@@ -1 +0,0 @@
-dashboard.Fake.name=Artificiel \ No newline at end of file
diff --git a/it/it-plugins/dashboard-plugin/src/main/resources/widgets/widget-with-mandatory-properties.html.erb b/it/it-plugins/dashboard-plugin/src/main/resources/widgets/widget-with-mandatory-properties.html.erb
deleted file mode 100644
index 5e57af614da..00000000000
--- a/it/it-plugins/dashboard-plugin/src/main/resources/widgets/widget-with-mandatory-properties.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-<table>
- <thead>
- <tr>
- <th>Property</th>
- <th>Value</th>
- </tr>
- </thead>
- <tr>
- <td>mandatoryString</td>
- <td><%= widget_properties['mandatoryString'] -%></td>
- </tr>
- <tr>
- <td>mandatoryInt</td>
- <td><%= widget_properties['mandatoryInt'] -%></td>
- </tr>
-</table>
diff --git a/it/it-plugins/pom.xml b/it/it-plugins/pom.xml
index 39c3bd46f78..27c921e59af 100644
--- a/it/it-plugins/pom.xml
+++ b/it/it-plugins/pom.xml
@@ -33,7 +33,6 @@
<module>access-secured-props-plugin</module>
<module>base-auth-plugin</module>
<module>batch-plugin</module>
- <module>dashboard-plugin</module>
<module>extension-lifecycle-plugin</module>
<module>global-property-change-plugin</module>
<module>issue-filter-plugin</module>
diff --git a/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java b/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java
index 6564f138c55..e28213d6d12 100644
--- a/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java
+++ b/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java
@@ -1,3 +1,4 @@
+
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
@@ -46,6 +47,6 @@ import org.sonar.api.SonarPlugin;
public class ServerPlugin extends SonarPlugin {
public List getExtensions() {
return Arrays.asList(
- StartupCrash.class, WidgetDisplayingProperties.class, TempFolderExtension.class);
+ StartupCrash.class, TempFolderExtension.class);
}
}
diff --git a/it/it-plugins/server-plugin/src/main/java/WidgetDisplayingProperties.java b/it/it-plugins/server-plugin/src/main/java/WidgetDisplayingProperties.java
deleted file mode 100644
index ff7dbe547f7..00000000000
--- a/it/it-plugins/server-plugin/src/main/java/WidgetDisplayingProperties.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWidget;
-import org.sonar.api.web.WidgetScope;
-
-import static org.sonar.api.web.WidgetScope.GLOBAL;
-
-@WidgetScope(GLOBAL)
-public class WidgetDisplayingProperties extends AbstractRubyTemplate implements RubyRailsWidget {
-
- public String getId() {
- return "widget-displaying-properties";
- }
-
- public String getTitle() {
- return "Widget Displaying Properties";
- }
-
- @Override
- protected String getTemplatePath() {
- return "/widgets/widget-displaying-properties.html.erb";
- }
-}