Skip to main content

Move to JUnit 5

io.moderne.devcenter.JUnitJupiterUpgrade

Move to JUnit Jupiter.

Recipe source

GitHub, Issue Tracker, Maven Central

This recipe is available under the Moderne Source Available License.

Options

TypeNameDescriptionExample
StringupgradeRecipeOptional. The recipe to use to upgrade.org.openrewrite.java.testing.junit5.JUnit4to5Migration

Usage

This recipe has no required configuration options. It can be activated by adding a dependency on io.moderne.recipe:rewrite-devcenter in your build file or by running a shell command (in which case no build changes are needed):

  1. Add the following to your build.gradle file:
build.gradle
plugins {
id("org.openrewrite.rewrite") version("latest.release")
}

rewrite {
activeRecipe("io.moderne.devcenter.JUnitJupiterUpgrade")
setExportDatatables(true)
}

repositories {
mavenCentral()
}

dependencies {
rewrite("io.moderne.recipe:rewrite-devcenter:1.4.2")
}
  1. Run gradle rewriteRun to run the recipe.

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

Upgrades and migrations

io.moderne.devcenter.table.UpgradesAndMigrations

Progress towards organizational objectives on library or language migrations and upgrades.

Column NameDescription
CardThe display name of the DevCenter card
OrdinalThe ordinal position of this value relative to other values.
ValueThe display value of the current state of this repository.
Minimum versionThe minimum matching version that is currently in use.

Contributors

Jonathan Schneider, Bryce Tompkins