
org.testcontainers.containers.MySQLContainerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mysql Show documentation
Show all versions of mysql Show documentation
Isolated container management for Java code testing
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