Class 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 a DataSource 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(), "", "").
    • Constructor Detail

      • H2FileBasedDatabase

        public H2FileBasedDatabase()