@Test(expected = UnsupportedOperationException.class) public void addFeatureShouldThrow() { new FeatureSection(new Feature()).addFeature(new Feature()); }
@Override public Section addFeature(Feature feature) { throw new UnsupportedOperationException(); }
FeatureSection implements Section { @Override public Section addFeature(Feature feature) { throw new UnsupportedOperationException(); } }
FeatureSection implements Section { @Override public Section addFeature(Feature feature) { throw new UnsupportedOperationException(); } FeatureSection(Feature feature); }
FeatureSection implements Section { @Override public Section addFeature(Feature feature) { throw new UnsupportedOperationException(); } FeatureSection(Feature feature); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures(); }
FeatureSection implements Section { @Override public Section addFeature(Feature feature) { throw new UnsupportedOperationException(); } FeatureSection(Feature feature); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures();  }