Decompose assertThat on conjunctions into separate assertions
MSALSplit assertThat(a && b).isTrue() into separate assertThat(a).isTrue() and assertThat(b).isTrue() statements, so each condition is asserted (and reported) on its own. This lets the dedicated assertion recipes simplify each conjunct, and CollapseConsecutiveAssertThatStatements fuse them back into a single chain when the actual is a plain expression. Only the direct assertThat(...).isTrue() form is decomposed; isFalse() is left alone, as negating a conjunction is not equivalent to negating each conjunct.
org. openrewrite. java. testing. assertj. DecomposeConjunctionAssertionmod run . --recipe= org. openrewrite. java. testing. assertj. DecomposeConjunctionAssertionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.