com.cedarsoft.gdao
Class PersistenceTester
java.lang.Object
com.cedarsoft.gdao.PersistenceTester
public class PersistenceTester
- extends Object
Tests persistence objects
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
additionalObjectCount
public int additionalObjectCount
checkEquality
public boolean checkEquality
PersistenceTester
public PersistenceTester(@Nonnull
GenericDaoManager daoManager)
PersistenceTester
public PersistenceTester(@Nonnull
GenericDaoManager daoManager,
@Nonnull
Set<Class<?>> transientFieldTypes)
save
public <T> void save(@Nonnull
T object)
addTransientFieldType
public void addTransientFieldType(@Nonnull
Class<?> transientFieldType)
getDao
@Nonnull
public <T> GenericDao<T> getDao(@Nonnull
T object)
testObject
public <T> void testObject(@Nonnull
T object)
throws Exception
- Tests the given object
- Parameters:
object - the object that is tested
- Throws:
Exception
mustBeTransient
protected boolean mustBeTransient(@Nonnull
Field field)
Copyright © 2011 cedarsoft GmbH. All Rights Reserved.