Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to make the generated SoftAssertions implement AutoCloseable #51

Open
StormeHawke opened this issue Apr 18, 2018 · 2 comments

Comments

@StormeHawke
Copy link

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();
    }
}
@joel-costigliola
Copy link
Member

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

@StormeHawke
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants