Find public modifier on JUnit 5 test functions

Proprietary

JUnit 5 dropped the JUnit 4 requirement that test methods be public — package-private (Java) or no modifier (Kotlin default) is the convention. Each public fun test...() is a JUnit 4 holdover that can be dropped.

org.openrewrite.kotlin.testing.FindJUnitFunctionWithPublic$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.testing.FindJUnitFunctionWithPublic$KtRecipe'

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