@Test public void should_get_the_right_number_of_extensions() { Plugin.Context context = new Plugin.Context(Version.create(5, 6)); new JavaPropertiesPlugin().define(context); assertThat(context.getExtensions()).hasSize(5); }
@Override public void define(Context context) { context.addExtensions( JavaPropertiesLanguage.class, JavaPropertiesSquidSensor.class, JavaPropertiesProfile.class, GenericJavaPropertiesRulesDefinition.class, SonarScannerJavaPropertiesRulesDefinition.class); }
JavaPropertiesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JavaPropertiesLanguage.class, JavaPropertiesSquidSensor.class, JavaPropertiesProfile.class, GenericJavaPropertiesRulesDefinition.class, SonarScannerJavaPropertiesRulesDefinition.class); } }
JavaPropertiesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JavaPropertiesLanguage.class, JavaPropertiesSquidSensor.class, JavaPropertiesProfile.class, GenericJavaPropertiesRulesDefinition.class, SonarScannerJavaPropertiesRulesDefinition.class); }  }
JavaPropertiesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JavaPropertiesLanguage.class, JavaPropertiesSquidSensor.class, JavaPropertiesProfile.class, GenericJavaPropertiesRulesDefinition.class, SonarScannerJavaPropertiesRulesDefinition.class); }  @Override void define(Context context); }
JavaPropertiesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JavaPropertiesLanguage.class, JavaPropertiesSquidSensor.class, JavaPropertiesProfile.class, GenericJavaPropertiesRulesDefinition.class, SonarScannerJavaPropertiesRulesDefinition.class); }  @Override void define(Context context);  }