aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java
index 69cc0823895..76198a3ac70 100644
--- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java
+++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java
@@ -21,7 +21,6 @@ package org.sonar.xoo;
import org.junit.Test;
import org.sonar.api.Plugin;
-import org.sonar.api.SonarQubeVersion;
import org.sonar.api.utils.Version;
import org.sonar.xoo.lang.CpdTokenizerSensor;
@@ -32,11 +31,11 @@ public class XooPluginTest {
@Test
public void provide_extensions_for_5_5() {
- Plugin.Context context = new Plugin.Context(new SonarQubeVersion(V5_5));
+ Plugin.Context context = new Plugin.Context(V5_5);
new XooPlugin().define(context);
assertThat(context.getExtensions()).hasSize(39).contains(CpdTokenizerSensor.class);
- context = new Plugin.Context(new SonarQubeVersion(Version.parse("5.4")));
+ context = new Plugin.Context(Version.parse("5.4"));
new XooPlugin().define(context);
assertThat(context.getExtensions()).hasSize(38).doesNotContain(CpdTokenizerSensor.class);
}