Migrate cucumber.api to io.cucumber
Recipe ID
org.openrewrite.cucumber.jvm.CucumberApiToIoCucumberArtifactorg.openrewrite.recipe:rewrite-cucumber-jvmCucumber-JVM 5.0.0 moved the cucumber.api types to io.cucumber, but not as a single package rename: types were spread over io.cucumber.java, io.cucumber.junit, io.cucumber.testng, io.cucumber.plugin and io.cucumber.core. This recipe maps each cucumber.api type onto the package it actually moved to.
Composite recipecucumbertestingMSAL
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.cucumber.jvm.CucumberApiToIoCucumberIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-cucumber-jvm:RELEASEDefinition
This recipe runs the following recipes in order.
- Migrate
cucumber.api.CucumberOptionstoio.cucumber.testng.CucumberOptionsorg.openrewrite.cucumber.jvm.CucumberOptionsToTestNgCucumberOptions - Change type
cucumber.api.java.ObjectFactorytoio.cucumber.core.backend.ObjectFactoryorg.openrewrite.java.ChangeType - Change type
cucumber.api.event.EventListenertoio.cucumber.plugin.EventListenerorg.openrewrite.java.ChangeType - Change type
cucumber.api.event.ConcurrentEventListenertoio.cucumber.plugin.ConcurrentEventListenerorg.openrewrite.java.ChangeType - Change type
cucumber.api.event.CanonicalEventOrdertoio.cucumber.core.plugin.CanonicalEventOrderorg.openrewrite.java.ChangeType - Rename package name
cucumber.api.eventtoio.cucumber.plugin.eventorg.openrewrite.java.ChangePackage - Change type
cucumber.api.formatter.AnsiEscapestoio.cucumber.core.plugin.AnsiEscapesorg.openrewrite.java.ChangeType - Change type
cucumber.api.formatter.ColorAwaretoio.cucumber.plugin.ColorAwareorg.openrewrite.java.ChangeType - Change type
cucumber.api.formatter.NiceAppendabletoio.cucumber.core.plugin.NiceAppendableorg.openrewrite.java.ChangeType - Change type
cucumber.api.formatter.StrictAwaretoio.cucumber.plugin.StrictAwareorg.openrewrite.java.ChangeType - Change type
cucumber.api.Argumenttoio.cucumber.plugin.event.Argumentorg.openrewrite.java.ChangeType - Change type
cucumber.api.CucumberOptionstoio.cucumber.junit.CucumberOptionsorg.openrewrite.java.ChangeType - Change type
cucumber.api.DataTabletoio.cucumber.datatable.DataTableorg.openrewrite.java.ChangeType - Change type
cucumber.api.HookTestSteptoio.cucumber.plugin.event.HookTestSteporg.openrewrite.java.ChangeType - Change type
cucumber.api.HookTypetoio.cucumber.plugin.event.HookTypeorg.openrewrite.java.ChangeType - Change type
cucumber.api.Pendingtoio.cucumber.core.backend.Pendingorg.openrewrite.java.ChangeType - Change type
cucumber.api.PendingExceptiontoio.cucumber.java.PendingExceptionorg.openrewrite.java.ChangeType - Change type
cucumber.api.PickleStepTestSteptoio.cucumber.plugin.event.PickleStepTestSteporg.openrewrite.java.ChangeType - Change type
cucumber.api.Plugintoio.cucumber.plugin.Pluginorg.openrewrite.java.ChangeType - Change type
cucumber.api.Resulttoio.cucumber.plugin.event.Resultorg.openrewrite.java.ChangeType - Change type
cucumber.api.Scenariotoio.cucumber.java.Scenarioorg.openrewrite.java.ChangeType - Change type
SnippetTypetoCucumberOptions$SnippetTypeorg.openrewrite.java.ChangeType - Change type
cucumber.api.SummaryPrintertoio.cucumber.plugin.SummaryPrinterorg.openrewrite.java.ChangeType - Change type
cucumber.api.TestCasetoio.cucumber.plugin.event.TestCaseorg.openrewrite.java.ChangeType - Change type
cucumber.api.TestSteptoio.cucumber.plugin.event.TestSteporg.openrewrite.java.ChangeType - Change type
cucumber.api.Transposetoio.cucumber.java.Transposeorg.openrewrite.java.ChangeType - Change type
cucumber.api.TypeRegistrytoio.cucumber.core.api.TypeRegistryorg.openrewrite.java.ChangeType - Change type
cucumber.api.TypeRegistryConfigurertoio.cucumber.core.api.TypeRegistryConfigurerorg.openrewrite.java.ChangeType - Change type
cucumber.api.cli.Maintoio.cucumber.core.cli.Mainorg.openrewrite.java.ChangeType - Rename package name
cucumber.api.java8toio.cucumber.java8org.openrewrite.java.ChangePackage - Rename package name
cucumber.api.javatoio.cucumber.javaorg.openrewrite.java.ChangePackage - Rename package name
cucumber.api.junittoio.cucumber.junitorg.openrewrite.java.ChangePackage - Rename package name
cucumber.api.testngtoio.cucumber.testngorg.openrewrite.java.ChangePackage
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats