assertj-assertions-generator
assertj-assertions-generator copied to clipboard
Feature: Generate alternative to `get` + `isNotNull`
Currently, we write:
assertThat(myValue.getMyProperty()).isNotNull()
Nicer would be:
assertThat(myValue).hasAnyMyProperty()
It think #220 would be more general. Then, we could write:
assertThat(myValue).myProperty().isNotNull()
Which is good enough in many cases; of course, we couldn't get back to the original Assert once we "descend" into the one of the property.