Package org.kiwiproject.test.h2
Class H2FileBasedDatabase
- java.lang.Object
-
- org.kiwiproject.test.h2.H2FileBasedDatabase
-
public class H2FileBasedDatabase extends Object
Value class representing a file-based H2 database intended for use in tests. It contains the directory where the database files reside and aDataSource
that can be used to connect to the database. It also provides the JDBC URL for the database. The username and password to use with the JDBC URL should be empty strings, e.g.DriverManager.getConnection(h2Database.getUrl(), "", "")
.