Feature summary
An ObjectAssert exposes matches(…) methods taking predicates. It would be useful to use boolean methods on Optional values as well.
Example
Optional<Person> optional = …
assertThat(optional).hasValueMatching(Person::isAdult);
Optionally (pun intended), also add an overload taking a descriptions, similarly to the matches(…) ones.
Feature summary
An
ObjectAssertexposesmatches(…)methods taking predicates. It would be useful to usebooleanmethods onOptionalvalues as well.Example
Optionally (pun intended), also add an overload taking a descriptions, similarly to the
matches(…)ones.