org.testcontainers.containers.CockroachContainerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cockroachdb Show documentation
Show all versions of cockroachdb Show documentation
Isolated container management for Java code testing
The newest version!
package org.testcontainers.containers;
import org.testcontainers.utility.DockerImageName;
public class CockroachContainerProvider extends JdbcDatabaseContainerProvider {
@Override
public boolean supports(String databaseType) {
return databaseType.equals(CockroachContainer.NAME);
}
@Override
public JdbcDatabaseContainer newInstance() {
return newInstance(CockroachContainer.IMAGE_TAG);
}
@Override
public JdbcDatabaseContainer newInstance(String tag) {
return new CockroachContainer(DockerImageName.parse(CockroachContainer.IMAGE).withTag(tag));
}
}