Simplify AssertJ assertions on instanceof expressions
MSALReplace assertThat(x instanceof Type).isTrue() with the dedicated assertThat(x).isInstanceOf(Type.class), and the negated and isFalse() variants with isNotInstanceOf, so failures describe the actual type rather than just expected true but was false.
org. openrewrite. java. testing. assertj. SimplifyAssertJInstanceOfAssertionmod run . --recipe= org. openrewrite. java. testing. assertj. SimplifyAssertJInstanceOfAssertionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.