Migrate rider-spring (JUnit4) to rider-junit5 (JUnit5)

MSAL

Migrates the DbRider dependency and annotations from rider-spring (JUnit 4) to rider-junit5 (JUnit 5) in a Spring application.

org.openrewrite.java.testing.dbrider.MigrateDbRiderSpringToDbRiderJUnit5
mod run . --recipe=org.openrewrite.java.testing.dbrider.MigrateDbRiderSpringToDbRiderJUnit5

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

Recipe list

It runs these recipes, in this order.

  1. Migrate the DBRiderTestExecutionListener to the @DBRider annotation
  2. Change Gradle or Maven dependency com.github.database-rider:rider-spring