Class AbstractPostgreSqlJUnit.Configuration
- java.lang.Object
-
- net.officefloor.jdbc.postgresql.test.AbstractPostgreSqlJUnit.Configuration
-
- Enclosing class:
- AbstractPostgreSqlJUnit
public static class AbstractPostgreSqlJUnit.Configuration extends java.lang.Object
Configuration of the PostgreSql database.
Follows builder pattern to allow configuring and passing to
AbstractPostgreSqlJUnit
constructor.
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractPostgreSqlJUnit.Configuration
database(java.lang.String databaseName)
Specifies the database.AbstractPostgreSqlJUnit.Configuration
maxConnections(int maxConnections)
Specifies the max connections.AbstractPostgreSqlJUnit.Configuration
password(java.lang.String password)
Specifies the password.AbstractPostgreSqlJUnit.Configuration
port(int port)
Specifies the port.AbstractPostgreSqlJUnit.Configuration
server(java.lang.String server)
Specifies the server.AbstractPostgreSqlJUnit.Configuration
username(java.lang.String username)
Specifies the user name.
-
-
-
Method Detail
-
server
public AbstractPostgreSqlJUnit.Configuration server(java.lang.String server)
Specifies the server.- Parameters:
server
- Server.- Returns:
this
.
-
port
public AbstractPostgreSqlJUnit.Configuration port(int port)
Specifies the port.- Parameters:
port
- Port.- Returns:
this
.
-
database
public AbstractPostgreSqlJUnit.Configuration database(java.lang.String databaseName)
Specifies the database.- Parameters:
databaseName
- Database name.- Returns:
this
.
-
username
public AbstractPostgreSqlJUnit.Configuration username(java.lang.String username)
Specifies the user name.- Parameters:
username
- User name.- Returns:
this
.
-
password
public AbstractPostgreSqlJUnit.Configuration password(java.lang.String password)
Specifies the password.- Parameters:
password
- Password.- Returns:
this
.
-
maxConnections
public AbstractPostgreSqlJUnit.Configuration maxConnections(int maxConnections)
Specifies the max connections.- Parameters:
maxConnections
- Max connections.- Returns:
this
.
-
-