assertj-examples icon indicating copy to clipboard operation
assertj-examples copied to clipboard

Custom Assumptions

Open chamacs opened this issue 7 years ago • 0 comments

This is more of a question than an issue. Is there a reason why custom assumptions can't done similar to custom assertions? (or am I just not finding the documentation on how to do this?)

So that this is possible: assumeThat(frodo).hasRace("hobbit");

Instead of having to do this: assumeThat(frodo.getRace()).isEqualTo("hobbit");

Thanks in advance.

chamacs avatar Aug 02 '18 17:08 chamacs