Package org.dalesbred.junit
Class TestDatabaseProvider
- java.lang.Object
-
- org.dalesbred.junit.TestDatabaseProvider
-
public final class TestDatabaseProvider extends java.lang.ObjectHelper 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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull org.dalesbred.DatabasedatabaseForProperties(@NotNull java.lang.String propertiesPath)Loads database with given properties.static @NotNull org.dalesbred.DatabasedatabaseForProperties(@NotNull java.lang.String propertiesPath, @NotNull org.dalesbred.dialect.Dialect dialect)Loads database with given properties, using specified dialect.
-
-
-
Method Detail
-
databaseForProperties
@NotNull public static @NotNull org.dalesbred.Database databaseForProperties(@NotNull @NotNull java.lang.String propertiesPath)Loads database with given properties.- Throws:
org.junit.internal.AssumptionViolatedException- if properties were not found
-
databaseForProperties
@NotNull public static @NotNull org.dalesbred.Database databaseForProperties(@NotNull @NotNull java.lang.String propertiesPath, @NotNull @NotNull org.dalesbred.dialect.Dialect dialect)Loads database with given properties, using specified dialect.- Throws:
org.junit.internal.AssumptionViolatedException- if properties were not found
-
-