Migrate removed LocalStackContainer members to Testcontainers 2.x
MSALTestcontainers 2.x removed the nested LocalStackContainer.Service enum and the getEndpointOverride(...) method. Replace LocalStackContainer.Service constants with the equivalent service name strings and getEndpointOverride(service) with getEndpoint(), so code continues to compile against Testcontainers 2.x. This runs while the type is still org.testcontainers.containers.localstack.LocalStackContainer, before it is renamed.
org. openrewrite. java. testing. testcontainers. Testcontainers2LocalStackmod run . --recipe= org. openrewrite. java. testing. testcontainers. Testcontainers2LocalStackInstall 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.
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Replace constant with literal value
- Change method name
org.testcontainers.containers.localstack.LocalStackContainer getEndpointOverride(..)togetEndpoint - Delete method argument 0 in methods
org.testcontainers.containers.localstack.LocalStackContainer getEndpoint(..)