[java-dfa] AssertJInliner: support WithAssertions (IDEA-361718)

(cherry picked from commit e785553c79409934f7097b5956db12705d5a623b)

IJ-CR-149830

GitOrigin-RevId: a1d882d0662761bde872ba3ab2b7c79a4c7746af
This commit is contained in:
Tagir Valeev
2024-11-19 17:25:49 +01:00
committed by intellij-monorepo-bot
parent a6084f9e68
commit 44ee539dbd

View File

@@ -43,6 +43,7 @@ public class AssertJInliner implements CallInliner {
private static final CallMatcher ASSERT_THAT = CallMatcher.anyOf(
CallMatcher.staticCall("org.assertj.core.api.BDDAssertions", "then").parameterCount(1),
CallMatcher.staticCall("org.assertj.core.api.Assertions", "assertThat").parameterCount(1),
CallMatcher.instanceCall("org.assertj.core.api.WithAssertions", "assertThat").parameterCount(1),
CallMatcher.staticCall("com.google.common.truth.Truth", "assertThat").parameterCount(1),
CallMatcher.staticCall("com.google.common.truth.StandardSubjectBuilder", "that").parameterCount(1)
);