Package org.dalesbred.junit
Class TestDatabaseProvider
java.lang.Object
org.dalesbred.junit.TestDatabaseProvider
Helper methods for creating databases using a properties-file in classpath.
The properties should have the following keys:
<table-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.dalesbred.DatabasedatabaseForProperties(@NotNull String propertiesPath) Loads database with given properties.static @NotNull org.dalesbred.DatabasedatabaseForProperties(@NotNull String propertiesPath, @NotNull org.dalesbred.dialect.Dialect dialect) Loads database with given properties, using specified dialect.
-
Method Details
-
databaseForProperties
@NotNull public static @NotNull org.dalesbred.Database databaseForProperties(@NotNull @NotNull 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 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
-