What problem are you trying to solve?
Oracle Database Free is the successor of Oracle XE
What precondition(s) should be checked before applying this recipe?
- Testcontainers version should be >= 1.19.2
org.testcontainers:oracle-xe dependency should change to org.testcontainers:oracle-free
- org.testcontainers.containers.OracleContainer is used
Describe the situation before applying the recipe
import org.testcontainers.containers.OracleContainer;
class A {
void foo() {
var dockerImageName = DockerImageName.parse("gvenzl/oracle-free:23.3-slim-faststart").asCompatibleSubstituteFor("gvenzl/oracle-xe")
OracleContainer oracle = new OracleContainer(dockerImageName);
}
}
Describe the situation after applying the recipe
import org.testcontainers.oracle.OracleContainer;
class A {
void foo() {
OracleContainer oracle = new OracleContainer("gvenzl/oracle-free:23.3-slim-faststart");
}
}
Have you considered any alternatives or workarounds?
Any additional context
OracleContainer from oracle-xe module depends on gvenzl/oracle-xe image. Meanwhile, OracleContainer from oracle-free module depends on gvenzl/oracle-free.
We can check if
What problem are you trying to solve?
Oracle Database Free is the successor of Oracle XE
What precondition(s) should be checked before applying this recipe?
org.testcontainers:oracle-xedependency should change toorg.testcontainers:oracle-freeDescribe the situation before applying the recipe
Describe the situation after applying the recipe
Have you considered any alternatives or workarounds?
Any additional context
OracleContainerfromoracle-xemodule depends ongvenzl/oracle-xeimage. Meanwhile,OracleContainerfromoracle-freemodule depends ongvenzl/oracle-free.We can check if
Are you interested in contributing this recipe to OpenRewrite?