public abstract class BaseDaoTest extends Object
Constructor and Description |
---|
BaseDaoTest() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeClass() |
protected void |
commit() |
protected long |
countEntities(Class entityClass) |
protected long |
countEntities(Class entityClass,
String alias,
String whereClause) |
protected Query |
createStatelessQuery(String hqlQuery) |
protected static <S> S |
getBean(String name,
Class<S> serviceType) |
protected void |
setCommitOnTearDown(boolean commitOnTearDown)
Allow to apply a commit on tear down (by default a rollback is applied)
|
void |
setUp() |
void |
tearDown() |
public BaseDaoTest()
public static void beforeClass()
protected void setCommitOnTearDown(boolean commitOnTearDown)
commitOnTearDown
- true to force to commit after unit testprotected Query createStatelessQuery(String hqlQuery)
protected long countEntities(Class entityClass)
protected long countEntities(Class entityClass, String alias, String whereClause)
protected void commit()
Copyright © 2012–2014 IFREMER. All rights reserved.