Closed GoGoris closed 8 years ago
Hi GoGoris,
#extracting
supports multiple Extractor
parameters. So I think assertj should support the #flatExtracting(Step::getPeriod, Step::getAmount, Step::getNr)
notation.
I tried to create a pull request with this features, but I could not figure out the correct generic signatures. :(
By the way, this repository is for the assertj website, please report further issues at https://github.com/joel-costigliola/assertj-core
Thanks! :)
O.k. got it to work, but I'm not sure this results in easy readable tests. I would like to hear @joel-costigliola opinion on this, before investing the effort to come up with a polished pull request.
I think we can spike it and see how it goes, note that as you can extract different types the resulting list can only contain objects.
I have created https://github.com/joel-costigliola/assertj-core/issues/644 to track this issue. @PascalSchumacher do you need more feedback ? not sure that I have fully answered you.
Hi, at the moment I have this:
Would it be possible to support the following notations? Like extracting():
Or accept a stream like flatMap()?