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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    org.dbunit.dataset.IDataSet
    getDatabaseDataSet(HibernateDatabaseTester tester, org.hibernate.SessionFactory fac, org.hibernate.cfg.Configuration config)
    Produces a QueryDataSet for the database contents

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DbunitModule

      public DbunitModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.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