@Test public void should_get_the_right_number_of_extensions() { Plugin.Context context = new Plugin.Context(Version.create(5, 6)); new JSONPlugin().define(context); assertThat(context.getExtensions()).hasSize(4); }
@Override public void define(Context context) { context.addExtensions( JSONLanguage.class, JSONSquidSensor.class, JSONProfile.class, JSONRulesDefinition.class); }
JSONPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JSONLanguage.class, JSONSquidSensor.class, JSONProfile.class, JSONRulesDefinition.class); } }
JSONPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JSONLanguage.class, JSONSquidSensor.class, JSONProfile.class, JSONRulesDefinition.class); }  }
JSONPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JSONLanguage.class, JSONSquidSensor.class, JSONProfile.class, JSONRulesDefinition.class); }  @Override void define(Context context); }
JSONPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( JSONLanguage.class, JSONSquidSensor.class, JSONProfile.class, JSONRulesDefinition.class); }  @Override void define(Context context);  }