@Test public void should_get_the_right_number_of_extensions() { Plugin.Context context = new Plugin.Context(Version.create(5, 6)); new MyGherkinCustomRulesPlugin().define(context); assertThat(context.getExtensions()).hasSize(1); }
@Override public void define(Context context) { context.addExtensions( ImmutableList.of( MyGherkinCustomRulesDefinition.class)); }
MyGherkinCustomRulesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( ImmutableList.of( MyGherkinCustomRulesDefinition.class)); } }
MyGherkinCustomRulesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( ImmutableList.of( MyGherkinCustomRulesDefinition.class)); }  }
MyGherkinCustomRulesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( ImmutableList.of( MyGherkinCustomRulesDefinition.class)); }  @Override void define(Context context); }
MyGherkinCustomRulesPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( ImmutableList.of( MyGherkinCustomRulesDefinition.class)); }  @Override void define(Context context);  }