Skip to content

Instantly share code, notes, and snippets.

View MHawksworth's full-sized avatar

Michael Hawksworth MHawksworth

View GitHub Profile
@MHawksworth
MHawksworth / gist:2700832
Created May 15, 2012 10:57
Getting DBUnit to play nice with Hibernate hbm2ddl.auto database changes by extending DBTestCase
package com.ossAccounts.ac.server;
import java.io.FileInputStream;
import org.dbunit.DBTestCase;
import org.dbunit.IDatabaseTester;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.xml.FlatXmlDataSetBuilder;
import org.dbunit.ext.mssql.InsertIdentityOperation;
import org.dbunit.operation.DatabaseOperation;
import org.hibernate.Session;