Migrate io.cucumber.java8.Scenario and io.cucumber.java8.Status

MSAL

Scenario and Status are the only io.cucumber.java8 types with an io.cucumber.java counterpart; the language interfaces such as En and the LambdaGlue body types have none, so renaming the package wholesale would point whatever the migration could not convert at a type that does not exist. Where such a body type does survive it also still expects the cucumber-java8 Scenario, as in an anonymous HookBody, so leave both types be until the last of the lambda glue is gone.

org.openrewrite.cucumber.jvm.MigrateCucumberJava8ScenarioAndStatus
mod run . --recipe=org.openrewrite.cucumber.jvm.MigrateCucumberJava8ScenarioAndStatus

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. Change type io.cucumber.java8.Scenario to io.cucumber.java.Scenario
  2. Change type io.cucumber.java8.Status to io.cucumber.java.Status