assertj-assertions-generator-maven-plugin icon indicating copy to clipboard operation
assertj-assertions-generator-maven-plugin copied to clipboard

Add option to make the generated SoftAssertions implement AutoCloseable

Open StormeHawke opened this issue 6 years ago • 2 comments

Would be nice to add an option to make the generated SoftAssertions implement AutoCloseable, like so:

public class SoftAssertions extends org.assertj.core.api.SoftAssertions implements AutoCloseable {
    @Override
    public void close() {
        assertAll();
    }
}

StormeHawke avatar Apr 18 '18 15:04 StormeHawke

Good idea. You know yo can change the template to do so in the meantime.

joel-costigliola avatar Apr 18 '18 21:04 joel-costigliola

I... did not know that. I'll look into the docs

StormeHawke avatar Apr 19 '18 23:04 StormeHawke