Please add support for H2 database (dbunit supports it)

Description

Please add support for H2 database (dbunit supports it)

Environment

None

Attachments

1

Activity

Show:

Willemijn Wouters April 25, 2014 at 1:19 PM

added in unitils 3.4: org.unitils.core.dbsupport.H2DbSupport

GaryG March 20, 2009 at 12:49 PM

Thanks, Mark! When will this be in a release version? Thanks again!!!

Mark Thomas March 20, 2009 at 12:33 PM
Edited

Hi Gary,

See the attached class for Unitils 2.2. In order to get it to work, you'll have to setup your unitils[-local].properties as follows:

database.driverClassName=org.h2.Driver
database.url=jdbc:h2:mem:awarixclr;DB_CLOSE_DELAY=-1
database.dialect=h2
database.userName=sa
database.password=
database.schemaNames=public
database.storedIndentifierCase.h2=auto
database.identifierQuoteString.h2=auto
org.unitils.core.dbsupport.DbSupport.implClassName.h2=org.unitils.core.dbsupport.H2DbSupport
org.dbunit.dataset.datatype.IDataTypeFactory.implClassName=org.dbunit.ext.h2.H2DataTypeFactory

Of course, change the JDBC URL, username, password , and schemaNames to fit your environment. Enjoy ;0)

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created September 22, 2008 at 2:01 PM
Updated April 25, 2014 at 1:19 PM
Resolved April 25, 2014 at 1:19 PM