@Test public void webPluginTester() { Plugin.Context context = new Plugin.Context(SonarRuntimeImpl.forSonarQube(Version.create(6, 7), SonarQubeSide.SERVER)); new HtmlPlugin().define(context); assertThat(context.getExtensions()).hasSize(8); }
@Override public void define(Context context) { context.addExtensions( Html.class, Jsp.class, HtmlRulesDefinition.class, SonarWayProfile.class, JspQualityProfile.class, HtmlSensor.class ); context.addExtensions(pluginProperties()); }
HtmlPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Html.class, Jsp.class, HtmlRulesDefinition.class, SonarWayProfile.class, JspQualityProfile.class, HtmlSensor.class ); context.addExtensions(pluginProperties()); } }
HtmlPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Html.class, Jsp.class, HtmlRulesDefinition.class, SonarWayProfile.class, JspQualityProfile.class, HtmlSensor.class ); context.addExtensions(pluginProperties()); }  }
HtmlPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Html.class, Jsp.class, HtmlRulesDefinition.class, SonarWayProfile.class, JspQualityProfile.class, HtmlSensor.class ); context.addExtensions(pluginProperties()); }  @Override void define(Context context); }
HtmlPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Html.class, Jsp.class, HtmlRulesDefinition.class, SonarWayProfile.class, JspQualityProfile.class, HtmlSensor.class ); context.addExtensions(pluginProperties()); }  @Override void define(Context context);  }