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

AssertionMustProvideMessage returns false positives for assertions with non-void return types #739

Closed
morpfl opened this issue Dec 18, 2024 · 0 comments · Fixed by #740
Closed

Comments

@morpfl
Copy link
Contributor

morpfl commented Dec 18, 2024

The constraint junit<4,5>:AssertionMustProvideMessage returns false positives, if assert methods are used having a return type which is not void. For example, the assertThrows(...) methods declared in org.junit.jupiter.api.Assertions return the corresponding Throwable instead of void.

morpfl pushed a commit that referenced this issue Dec 18, 2024
…for assert methods with a non-void return type.
DirkMahler pushed a commit that referenced this issue Dec 20, 2024
…for assert methods with a non-void return type. (#740)

Co-authored-by: Moritz Pflügner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant