Class PostgreSqlRule
java.lang.Object
net.officefloor.jdbc.postgresql.test.AbstractPostgreSqlJUnit
net.officefloor.jdbc.postgresql.test.PostgreSqlRule
- All Implemented Interfaces:
org.junit.rules.TestRule
TestRule to run PostgreSql.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.jdbc.postgresql.test.AbstractPostgreSqlJUnit
AbstractPostgreSqlJUnit.Configuration -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate with defaultAbstractPostgreSqlJUnit.Configuration.PostgreSqlRule(AbstractPostgreSqlJUnit.Configuration configuration) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Methods inherited from class net.officefloor.jdbc.postgresql.test.AbstractPostgreSqlJUnit
getConnection, startPostgreSql, stopPostgreSql
-
Constructor Details
-
PostgreSqlRule
public PostgreSqlRule()Instantiate with defaultAbstractPostgreSqlJUnit.Configuration. -
PostgreSqlRule
Instantiate.- Parameters:
configuration-AbstractPostgreSqlJUnit.Configuration.
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-