GroovyPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( CodeNarcRulesDefinition.class, CodeNarcSensor.class, SonarWayProfile.class, Groovy.class, GroovyFileSystem.class, GroovySensor.class, GroovyMetrics.class, GroovySurefireParser.class, GroovySurefireSensor.class, CoberturaSensor.class); context.addExtensions(JaCoCoExtensions.getExtensions()); }  @Override void define(Context context); @Deprecated static final String CODENARC_REPORT_PATH; static final String CODENARC_REPORT_PATHS; static final String COBERTURA_REPORT_PATH; static final String IGNORE_HEADER_COMMENTS; static final String SONAR_GROOVY_BINARIES; static final String SONAR_GROOVY_BINARIES_FALLBACK; static final String FILE_SUFFIXES_KEY; static final String DEFAULT_FILE_SUFFIXES; }
@Test public void testExtensions() { GroovyPlugin plugin = new GroovyPlugin(); Plugin.Context context = new Plugin.Context(SonarQubeVersion.V5_6); plugin.define(context); assertThat(context.getExtensions()).hasSize(17); }