Package com.opentable.db.postgres.junit5
Class SingleInstancePostgresExtension
- java.lang.Object
-
- com.opentable.db.postgres.junit5.SingleInstancePostgresExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class SingleInstancePostgresExtension extends Object implements org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
SingleInstancePostgresExtension
customize(Consumer<EmbeddedPostgres.Builder> customizer)
EmbeddedPostgres
getEmbeddedPostgres()
-
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
- Throws:
Exception
-
customize
public SingleInstancePostgresExtension customize(Consumer<EmbeddedPostgres.Builder> customizer)
-
getEmbeddedPostgres
public EmbeddedPostgres getEmbeddedPostgres()
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
-