Migrate to testcontainers-java 2.x
MSALChange dependencies and types to migrate to testcontainers-java 2.x.
org. openrewrite. java. testing. testcontainers. Testcontainers2Migrationmod run . --recipe= org. openrewrite. java. testing. testcontainers. Testcontainers2MigrationInstall 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.
- Adopt
@Containerand add@Testcontainers - Use explicit container images and versions
- Replace
ContainerState.getContainerIpAddress()withgetHost() - Remove
withLocalCompose(true) - Change type
DockerComposeContainertoComposeContainer - Rename Testcontainers dependencies
- Migrate removed
LocalStackContainermembers to Testcontainers 2.x - Remove
BrowserWebDriverContainercapabilities when an image is given - Move container classes to their Testcontainers 2 packages