We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Spotbugs (4.7.3.6) correctly identifies missing assertions, as documented in https://assertj.github.io/doc/#forgetting-to-call-an-assertion
Is there a way to have the same behavior when using SoftAssertions ?
SoftAssertions
@ExtendWith(SoftAssertionsExtension.class) public class TmpTest { @InjectSoftAssertions protected SoftAssertions softly; @Test void demoTest() { List aList = List.of("a", "b"); // correctly detected by Spotbugs assertThat(aList.contains("a")); // incorrectly detected by Spotbugs softly.assertThat(aList.contains("a")); } }
The text was updated successfully, but these errors were encountered:
Could this be caused by the fact that @CheckReturnValue is currently applied to StandardSoftAssertionsProvider but it's not annotated as @Inherited?
@CheckReturnValue
StandardSoftAssertionsProvider
@Inherited
Sorry, something went wrong.
No branches or pull requests
Feature summary
Spotbugs (4.7.3.6) correctly identifies missing assertions, as documented in https://assertj.github.io/doc/#forgetting-to-call-an-assertion
Is there a way to have the same behavior when using
SoftAssertions
?Example
The text was updated successfully, but these errors were encountered: