Class EnhancerTestUtils
- java.lang.Object
-
- org.hibernate.testing.junit4.BaseUnitTestCase
-
- org.hibernate.testing.bytecode.enhancement.EnhancerTestUtils
-
public abstract class EnhancerTestUtils extends BaseUnitTestCase
utility class to use in bytecode enhancement tests
-
-
Field Summary
-
Fields inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
executorService, globalTimeout, log
-
-
Constructor Summary
Constructors Constructor Description EnhancerTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckDirtyTracking(java.lang.Object entityInstance, java.lang.String... dirtyFields)compares the dirty fields of an entity with a set of expected valuesstatic voidclearDirtyTracking(java.lang.Object entityInstance)clears the dirty set for an entitystatic java.lang.ObjectgetFieldByReflection(java.lang.Object entity, java.lang.String fieldName)static org.hibernate.engine.spi.EntityEntrymakeEntityEntry()-
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
-
-
-
-
Method Detail
-
getFieldByReflection
public static java.lang.Object getFieldByReflection(java.lang.Object entity, java.lang.String fieldName)
-
clearDirtyTracking
public static void clearDirtyTracking(java.lang.Object entityInstance)
clears the dirty set for an entity
-
checkDirtyTracking
public static void checkDirtyTracking(java.lang.Object entityInstance, java.lang.String... dirtyFields)compares the dirty fields of an entity with a set of expected values
-
makeEntityEntry
public static org.hibernate.engine.spi.EntityEntry makeEntityEntry()
-
-