Class DbunitModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.hibernatetest.DbunitModule
- All Implemented Interfaces:
com.google.inject.Module
public class DbunitModule
extends com.google.inject.AbstractModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
org.dbunit.dataset.IDataSet
getDatabaseDataSet
(HibernateDatabaseTester tester, org.hibernate.SessionFactory fac, org.hibernate.cfg.Configuration config) Produces a QueryDataSet for the database contentsMethods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
DbunitModule
public DbunitModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getDatabaseDataSet
@Provides public org.dbunit.dataset.IDataSet getDatabaseDataSet(HibernateDatabaseTester tester, org.hibernate.SessionFactory fac, org.hibernate.cfg.Configuration config) throws org.dbunit.database.AmbiguousTableNameException Produces a QueryDataSet for the database contents- Parameters:
tester
-config
-- Returns:
- Throws:
org.dbunit.database.AmbiguousTableNameException
-