Skip to:
Please add support for H2 database (dbunit supports it)
added in unitils 3.4: org.unitils.core.dbsupport.H2DbSupport
Thanks, Mark! When will this be in a release version? Thanks again!!!
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.Driverdatabase.url=jdbc:h2:mem:awarixclr;DB_CLOSE_DELAY=-1database.dialect=h2database.userName=sadatabase.password=database.schemaNames=publicdatabase.storedIndentifierCase.h2=autodatabase.identifierQuoteString.h2=autoorg.unitils.core.dbsupport.DbSupport.implClassName.h2=org.unitils.core.dbsupport.H2DbSupportorg.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)
Please add support for H2 database (dbunit supports it)