public final class TestDatabaseProvider
extends java.lang.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 @NotNull org.dalesbred.Database |
databaseForProperties(@NotNull java.lang.String propertiesPath)
Loads database with given properties.
|
static @NotNull org.dalesbred.Database |
databaseForProperties(@NotNull java.lang.String propertiesPath,
@NotNull org.dalesbred.dialect.Dialect dialect)
Loads database with given properties, using specified dialect.
|
@NotNull
public static @NotNull org.dalesbred.Database databaseForProperties(@NotNull
@NotNull java.lang.String propertiesPath)
org.junit.internal.AssumptionViolatedException - if properties were not found@NotNull
public static @NotNull org.dalesbred.Database databaseForProperties(@NotNull
@NotNull java.lang.String propertiesPath,
@NotNull
@NotNull org.dalesbred.dialect.Dialect dialect)
org.junit.internal.AssumptionViolatedException - if properties were not found