dupirefr/dupire.francois+pro@gmail.com [BAEL-3445] Cucumber Backgrounds (Moved package) (#8350)

* [BAEL-3445] Added Background examples to Cucumber examples

* [BAEL-3445] Copied code to have a package dedicated to the article

* [BAEL-3445] Removed code from other package
This commit is contained in:
François Dupire
2019-12-11 19:25:03 +01:00
committed by maibin
parent dfb9ae68a6
commit c8cafe8cd2
7 changed files with 145 additions and 11 deletions
@@ -19,10 +19,4 @@ public class BookStore {
.filter(book -> Objects.equals(author, book.getAuthor()))
.collect(Collectors.toList());
}
public Optional<Book> bookByTitle(String title) {
return books.stream()
.filter(book -> book.getTitle().equals(title))
.findFirst();
}
}