public class EmbeddedPostgres extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedPostgres.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EmbeddedPostgres.Builder |
builder() |
void |
close() |
DataSource |
getDatabase(String userName,
String dbName) |
String |
getJdbcUrl(String userName,
String dbName) |
int |
getPort() |
DataSource |
getPostgresDatabase() |
DataSource |
getTemplateDatabase() |
static EmbeddedPostgres |
start() |
String |
toString() |
public DataSource getTemplateDatabase()
public DataSource getPostgresDatabase()
public DataSource getDatabase(String userName, String dbName)
public int getPort()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static EmbeddedPostgres start() throws IOException
IOExceptionpublic static EmbeddedPostgres.Builder builder()
Copyright © 2016. All rights reserved.