Replace ContainerState.getContainerIpAddress() with getHost()

MSAL

Replace org.testcontainers.containers.ContainerState.getContainerIpAddress() with getHost().

org.openrewrite.java.testing.testcontainers.GetHostMigration
mod run . --recipe=org.openrewrite.java.testing.testcontainers.GetHostMigration

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 method name org.testcontainers.containers.ContainerState getContainerIpAddress() to getHost