TestNG assertThrows/expectThrows to AssertJ
MSALConvert TestNG-style assertThrows() and expectThrows() to AssertJ's assertThatExceptionOfType().isThrownBy() (or assertThatThrownBy() when no exception type is given) to allow for chained assertions on the thrown exception.
org. openrewrite. java. testing. testng. TestNgAssertThrowsToAssertThatmod run . --recipe= org. openrewrite. java. testing. testng. TestNgAssertThrowsToAssertThatInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.