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

Improve assertSoftly compatibility #198

Conversation

piotrb5e3
Copy link
Contributor

Description
Almost all assertions should now work well with assertSoftly.
Previously, some assertions would directly throw AssertionError.
fail would also throw, ignoring soft error collection mode.
This change exposes fail(message:String?): Unit in the public API of the library

This should resolve all issues with #196.

Checklist

  • I've added my name to the AUTHORS file, if it wasn't already present.

Piotr Bakalarski added 2 commits June 14, 2021 11:19
Added a common point at which exceptions are thrown, so that (almost)
all assertions are now compatible with assertSoftly.
Added notes in documentation about assertSoftly compatibility.
@sonarcloud
Copy link

sonarcloud bot commented Jun 14, 2021

@piotrb5e3
Copy link
Contributor Author

Hi, should I modify the PR, or can it be merged in the current state?

Copy link
Owner

@MarkusAmshove MarkusAmshove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes, thank you 👍

@MarkusAmshove MarkusAmshove merged commit 07ee5d2 into MarkusAmshove:master Jun 21, 2021
@piotrb5e3 piotrb5e3 deleted the all_assertions_support_softly_assertions branch June 22, 2021 12:04
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

Successfully merging this pull request may close these issues.

2 participants