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

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

There is a newer version: 1.20.4
Show newest version
package org.testcontainers.containers;

import org.testcontainers.utility.DockerImageName;

/**
 * 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 newInstance(OracleContainer.DEFAULT_TAG);
    }

    @Override
    public JdbcDatabaseContainer newInstance(String tag) {
        if (tag != null) {
            return new OracleContainer(DockerImageName.parse(OracleContainer.IMAGE).withTag(tag));
        }
        return newInstance();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy