public final class TestDatabaseProvider extends Object
Helper methods for creating databases using a properties-file in classpath.
The properties should have the following keys:
| jdbc.url | required | JDBC url of the database to connect |
| jdbc.login | optional | login for the database |
| jdbc.password | optional | password for the database |
| Modifier and Type | Method and Description |
|---|---|
static org.dalesbred.Database |
databaseForProperties(String propertiesPath)
Loads database with given properties.
|
static org.dalesbred.Database |
databaseForProperties(String propertiesPath,
org.dalesbred.dialect.Dialect dialect)
Loads database with given properties, using specified dialect.
|
@NotNull
public static org.dalesbred.Database databaseForProperties(@NotNull
String propertiesPath)
org.junit.internal.AssumptionViolatedException - if properties were not found@NotNull
public static org.dalesbred.Database databaseForProperties(@NotNull
String propertiesPath,
@NotNull
org.dalesbred.dialect.Dialect dialect)
org.junit.internal.AssumptionViolatedException - if properties were not found