@Test public void should_get_the_right_number_of_extensions() { Plugin.Context context = new Plugin.Context(Version.create(5, 6)); new GherkinPlugin().define(context); assertThat(context.getExtensions()).hasSize(4); }
@Override public void define(Context context) { context.addExtensions( GherkinLanguage.class, GherkinSquidSensor.class, GherkinProfile.class, GherkinRulesDefinition.class); }
GherkinPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( GherkinLanguage.class, GherkinSquidSensor.class, GherkinProfile.class, GherkinRulesDefinition.class); } }
GherkinPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( GherkinLanguage.class, GherkinSquidSensor.class, GherkinProfile.class, GherkinRulesDefinition.class); }  }
GherkinPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( GherkinLanguage.class, GherkinSquidSensor.class, GherkinProfile.class, GherkinRulesDefinition.class); }  @Override void define(Context context); }
GherkinPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( GherkinLanguage.class, GherkinSquidSensor.class, GherkinProfile.class, GherkinRulesDefinition.class); }  @Override void define(Context context);  }