Remove JUnit 5 static Assertions imports in Kotlin when wildcard import is present
MSALIn Kotlin, when both import org.junit.jupiter.api.* and static imports from org.junit.jupiter.api.Assertions are present, there is overload resolution ambiguity between the Java static methods and the Kotlin extension functions. This recipe removes the static Assertions imports when the wildcard import is present, allowing the Kotlin extension functions to be used instead.
org. openrewrite. java. testing. junit5. CleanupKotlinJUnit5AssertionImportsmod run . --recipe= org. openrewrite. java. testing. junit5. CleanupKotlinJUnit5AssertionImportsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.