@Test public void shouldGetFeature() { final Feature feature = new Feature(); final FeatureSection section = new FeatureSection(feature); assertThat(section.getFeatures()).containsExactly(feature); }
@Override public Stream<Feature> getFeatures() { return Stream.of(feature); }
FeatureSection implements Section { @Override public Stream<Feature> getFeatures() { return Stream.of(feature); } }
FeatureSection implements Section { @Override public Stream<Feature> getFeatures() { return Stream.of(feature); } FeatureSection(Feature feature); }
FeatureSection implements Section { @Override public Stream<Feature> getFeatures() { return Stream.of(feature); } 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 Stream<Feature> getFeatures() { return Stream.of(feature); } FeatureSection(Feature feature); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures();  }