@Test public void shouldGetNoFeaturesIfEmpty() { final DocumentSection root = new DocumentSection(); assertThat(root.getFeatures()).isEmpty(); }
@Override public Stream<Feature> getFeatures() { return buildDocument().flatMap(Section::getFeatures); }
DocumentSection implements Section { @Override public Stream<Feature> getFeatures() { return buildDocument().flatMap(Section::getFeatures); } }
DocumentSection implements Section { @Override public Stream<Feature> getFeatures() { return buildDocument().flatMap(Section::getFeatures); } DocumentSection();  DocumentSection(Iterable<Feature> features); }
DocumentSection implements Section { @Override public Stream<Feature> getFeatures() { return buildDocument().flatMap(Section::getFeatures); } DocumentSection();  DocumentSection(Iterable<Feature> features); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures(); }
DocumentSection implements Section { @Override public Stream<Feature> getFeatures() { return buildDocument().flatMap(Section::getFeatures); } DocumentSection();  DocumentSection(Iterable<Feature> features); @Override Section addFeature(Feature feature); @Override String render(CukedoctorDocumentBuilder docBuilder, I18nLoader i18n, DocumentAttributes documentAttributes); @Override int getOrder(); @Override Stream<Feature> getFeatures();  }