Open arian opened 5 years ago
Basic idea, add a method with the signature:
public static <I, O> Matcher<I> where(DescribableFunction<? super I, O> property, Function<I, Matcher<? super O>> matcher);
So you could write:
assertThat(someList, where(String::toUpperCase, str -> equalTo(str)));
my actual use case is a bit more complex than this.
Basic idea, add a method with the signature:
So you could write:
my actual use case is a bit more complex than this.