@Test public void getExtensions() { SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(7, 9), SonarQubeSide.SCANNER, SonarEdition.DEVELOPER); Plugin.Context context = new Plugin.Context(runtime); new SvnPlugin().define(context); assertThat(context.getExtensions()).isNotEmpty(); }
@Override public void define(Context context) { context.addExtensions(SvnScmProvider.class, SvnBlameCommand.class, SvnConfiguration.class, FindFork.class); context.addExtensions(SvnConfiguration.getProperties()); }
SvnPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions(SvnScmProvider.class, SvnBlameCommand.class, SvnConfiguration.class, FindFork.class); context.addExtensions(SvnConfiguration.getProperties()); } }
SvnPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions(SvnScmProvider.class, SvnBlameCommand.class, SvnConfiguration.class, FindFork.class); context.addExtensions(SvnConfiguration.getProperties()); }  }
SvnPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions(SvnScmProvider.class, SvnBlameCommand.class, SvnConfiguration.class, FindFork.class); context.addExtensions(SvnConfiguration.getProperties()); }  @Override void define(Context context); }
SvnPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions(SvnScmProvider.class, SvnBlameCommand.class, SvnConfiguration.class, FindFork.class); context.addExtensions(SvnConfiguration.getProperties()); }  @Override void define(Context context);  }