T
- A class that extends JdbcDatabaseContainer
for specific JDBC
implementations.public abstract static class AbstractJDBCResourceManager.Builder<T extends JdbcDatabaseContainer<?>> extends TestContainerResourceManager.Builder<AbstractJDBCResourceManager<T>>
AbstractJDBCResourceManager
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
databaseName |
protected java.lang.String |
password |
protected java.lang.String |
username |
containerImageName, containerImageTag, host, port, testId, useStaticContainer
Constructor and Description |
---|
Builder(java.lang.String testId,
java.lang.String containerImageName,
java.lang.String containerImageTag) |
Modifier and Type | Method and Description |
---|---|
AbstractJDBCResourceManager.Builder<T> |
setDatabaseName(java.lang.String databaseName)
Sets the database name to that of a static database instance.
|
AbstractJDBCResourceManager.Builder<T> |
setPassword(java.lang.String password)
Manually set the JDBC database password to the given password.
|
AbstractJDBCResourceManager.Builder<T> |
setUsername(java.lang.String username)
Manually set the JDBC database username to the given username.
|
build, setContainerImageName, setContainerImageTag, setHost, setPort, useStaticContainer
protected java.lang.String databaseName
protected java.lang.String username
protected java.lang.String password
public Builder(java.lang.String testId, java.lang.String containerImageName, java.lang.String containerImageTag)
public AbstractJDBCResourceManager.Builder<T> setDatabaseName(java.lang.String databaseName)
databaseName
- The database name.public AbstractJDBCResourceManager.Builder<T> setUsername(java.lang.String username)
username
- the username for the JDBC database.public AbstractJDBCResourceManager.Builder<T> setPassword(java.lang.String password)
password
- the password for the JDBC database.