Class AbstractPostgreSqlJUnit
java.lang.Object
net.officefloor.jdbc.postgresql.test.AbstractPostgreSqlJUnit
- Direct Known Subclasses:
PostgreSqlExtension,PostgreSqlRule
Abstract JUnit PostgreSql functionality.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration of the PostgreSql database. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate with defaultAbstractPostgreSqlJUnit.Configuration.AbstractPostgreSqlJUnit(AbstractPostgreSqlJUnit.Configuration configuration) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains aConnection.voidStarts PostgreSql.voidStops PostgreSql.
-
Constructor Details
-
AbstractPostgreSqlJUnit
public AbstractPostgreSqlJUnit()Instantiate with defaultAbstractPostgreSqlJUnit.Configuration. -
AbstractPostgreSqlJUnit
Instantiate.- Parameters:
configuration-AbstractPostgreSqlJUnit.Configuration.
-
-
Method Details
-
startPostgreSql
Starts PostgreSql.- Throws:
Exception- If fails to start PostgreSql.
-
getConnection
Obtains aConnection.- Returns:
Connection.- Throws:
Exception- If fails to obtainConnection.
-
stopPostgreSql
Stops PostgreSql.- Throws:
Exception- If fails to stop PostgreSql.
-