org.testcontainers.containers.TrinoContainerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trino Show documentation
Show all versions of trino Show documentation
Isolated container management for Java code testing
package org.testcontainers.containers;
import org.testcontainers.utility.DockerImageName;
/**
* Factory for Trino containers.
*/
public class TrinoContainerProvider extends JdbcDatabaseContainerProvider {
@Override
public boolean supports(String databaseType) {
return databaseType.equals(TrinoContainer.NAME);
}
@Override
public JdbcDatabaseContainer newInstance() {
return newInstance(TrinoContainer.DEFAULT_TAG);
}
@Override
public JdbcDatabaseContainer newInstance(String tag) {
return new TrinoContainer(DockerImageName.parse(TrinoContainer.IMAGE).withTag(tag));
}
}