org.unitils.orm.hibernate.util
Class HibernateAssert
java.lang.Object
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
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 |
HibernateAssert
public HibernateAssert()
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 nullsession
- The hibernate session, not nulldatabaseDialect
- The database dialect, not null
Copyright © 2011. All Rights Reserved.