org.unitils.orm.hibernate.util
Class HibernateAssert

java.lang.Object
  extended by org.unitils.orm.hibernate.util.HibernateAssert

public class HibernateAssert
extends Object

Assert class that offers assert methods for testing things that are specific to Hibernate.

Author:
Timmy Maris, Filip Neven, Tim Ducheyne

Constructor Summary
HibernateAssert()
           
 
Method Summary
static void assertMappingWithDatabaseConsistent(org.hibernate.cfg.Configuration configuration, org.hibernate.Session session, org.hibernate.dialect.Dialect databaseDialect)
          Checks if the mapping of the Hibernate managed objects with the database is still correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateAssert

public HibernateAssert()
Method Detail

assertMappingWithDatabaseConsistent

public static void assertMappingWithDatabaseConsistent(org.hibernate.cfg.Configuration configuration,
                                                       org.hibernate.Session session,
                                                       org.hibernate.dialect.Dialect databaseDialect)
Checks if the mapping of the Hibernate managed objects with the database is still correct.

Parameters:
configuration - The hibernate config, not null
session - The hibernate session, not null
databaseDialect - The database dialect, not null


Copyright © 2011. All Rights Reserved.