]> source.dussan.org Git - sonarqube.git/commitdiff
Fix javadoc of Plugin API
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 1 Aug 2017 07:11:17 +0000 (09:11 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 1 Aug 2017 07:11:27 +0000 (09:11 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java

index 02a19b18ec75928237ca523ff28f811c55f3f905..1afde4f24b8174e0ecc4dc43ec4ad84fa1f55ba8 100644 (file)
@@ -69,13 +69,11 @@ import static java.util.Objects.requireNonNull;
  *
  * <p>Example of test
  * <pre>
- * MyPlugin underTest = new MyPlugin();
- *
  *{@literal @}Test
  * public void test_plugin_extensions_compatible_with_5_6() {
- *   SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(5, 6));
+ *   SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER);
  *   Plugin.Context context = new Plugin.Context(runtime);
- *   underTest.define(context);
+ *   new MyPlugin().define(context);
  *   assertThat(context.getExtensions()).hasSize(4);
  * }
  * </pre>