All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testcontainers.containers.OracleContainerProvider Maven / Gradle / Ivy

The newest version!
package org.testcontainers.containers;

/**
 * Factory for Oracle containers.
 */
public class OracleContainerProvider extends JdbcDatabaseContainerProvider {
    @Override
    public boolean supports(String databaseType) {
        return databaseType.equals(OracleContainer.NAME);
    }

    @Override
    public JdbcDatabaseContainer newInstance() {
        return new OracleContainer();
    }

    @Override
    public JdbcDatabaseContainer newInstance(String tag) {
        if (tag != null) {
            throw new UnsupportedOperationException("Oracle database tag should be set in the configured image name");
        }

        return new OracleContainer();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy