Testcontainers module for the Oracle XE database.
Running Oracle XE as a stand-in for in a test:
public class SomeTest {
@Rule
public OracleContainer oracle = new OracleContainer();
@Test
public void someTestMethod() {
String url = oracle.getJdbcUrl();
... create a connection and run test as normal
Replace VERSION
with the latest version available on Maven Central.
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>oracle-xe</artifactId>
<version>VERSION</version>
</dependency>
compile group: 'org.testcontainers', name: 'oracle-xe', version: 'VERSION'