aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-06-06 09:45:41 -0500
committerSonarTech <sonartech@sonarsource.com>2019-07-12 20:21:14 +0200
commit7c7d9b6b90244d2c974207862071caccdb2c9bb5 (patch)
treed1b1035076f996207d9fcd60ec5ea0c06234ece4 /plugins
parent97e15208790028ed50187e58cd4580e6cef8e6b3 (diff)
downloadsonarqube-7c7d9b6b90244d2c974207862071caccdb2c9bb5.tar.gz
sonarqube-7c7d9b6b90244d2c974207862071caccdb2c9bb5.zip
Extract implementation from plugin API - Server rule definition
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/build.gradle1
-rw-r--r--plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java3
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle
index d9236cf050b..eb6a3c603b5 100644
--- a/plugins/sonar-xoo-plugin/build.gradle
+++ b/plugins/sonar-xoo-plugin/build.gradle
@@ -15,6 +15,7 @@ dependencies {
testCompile 'junit:junit'
testCompile 'org.assertj:assertj-core'
testCompile 'org.mockito:mockito-core'
+ testCompile project(':server:sonar-server')
}
jar {
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
index c1e3bca6dc0..2a4c1eda98b 100644
--- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
+++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
@@ -27,6 +27,7 @@ import org.sonar.api.internal.SonarRuntimeImpl;
import org.sonar.api.server.debt.DebtRemediationFunction;
import org.sonar.api.server.rule.RulesDefinition;
import org.sonar.api.utils.Version;
+import org.sonar.server.rule.RuleDefinitionContext;
import static org.assertj.core.api.Assertions.assertThat;
@@ -36,7 +37,7 @@ public class XooRulesDefinitionTest {
@Before
public void setUp() {
XooRulesDefinition def = new XooRulesDefinition(SonarRuntimeImpl.forSonarQube(Version.create(7, 3), SonarQubeSide.SCANNER, SonarEdition.COMMUNITY));
- context = new RulesDefinition.Context();
+ context = new RuleDefinitionContext();
def.define(context);
}