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

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

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

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

    @Override
    public JdbcDatabaseContainer newInstance(String tag) {
        return new MySQLContainer(MySQLContainer.IMAGE + ":" + tag);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy