Migrate StubRunner JUnit 4 Rule to JUnit 5 Extension

Apache 2.0

Replaces @Rule StubRunnerRule / StubRunnerClassRule with @RegisterExtension StubRunnerExtension (JUnit 5). Requires JUnit 5 on the test classpath.

sh.stubborn.contract.migration.DropJUnit4Support
mod run . --recipe=sh.stubborn.contract.migration.DropJUnit4Support

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 StubRunnerRule to StubRunnerExtension
  2. Change type StubRunnerClassRule to StubRunnerExtension