diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-11 10:57:05 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-11 10:57:50 +0200 |
commit | 50e2bb1db1b097cac4fb73b4aa211a37ba2184b5 (patch) | |
tree | ad58a49eca1f00585dc2e15ae53b9ad23fddc50e /plugins | |
parent | a5338f2a09043c24f2cae4fc50ac4fc82891eaaf (diff) | |
download | sonarqube-50e2bb1db1b097cac4fb73b4aa211a37ba2184b5.tar.gz sonarqube-50e2bb1db1b097cac4fb73b4aa211a37ba2184b5.zip |
Change return type of Plugin#getSonarQubeVersion()
and improve Javadoc
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java | 5 |
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); } |