Replace @ExtendWith and @ContextConfiguration with @SpringJUnitConfig

MSAL

Replaces @ExtendWith(SpringRunner.class) and @ContextConfiguration with @SpringJUnitConfig, preserving attributes on @ContextConfiguration, unless @ContextConfiguration(loader = ...) is used.

org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration
mod run . --recipe=org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration

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