TestNG assertThrows/expectThrows to AssertJ

MSAL

Convert 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.TestNgAssertThrowsToAssertThat
mod run . --recipe=org.openrewrite.java.testing.testng.TestNgAssertThrowsToAssertThat

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.