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(Object entityInstance, String... dirtyFields)compares the dirty fields of an entity with a set of expected valuesstatic voidclearDirtyTracking(Object entityInstance)clears the dirty set for an entitystatic ObjectgetFieldByReflection(Object entity, String fieldName)static org.hibernate.engine.spi.EntityEntrymakeEntityEntry()-
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
assertNoLeaks, executeAsync, executeSync, releaseTransactions, sleep
-
-
-
-
Method Detail
-
clearDirtyTracking
public static void clearDirtyTracking(Object entityInstance)
clears the dirty set for an entity
-
checkDirtyTracking
public static void checkDirtyTracking(Object entityInstance, String... dirtyFields)
compares the dirty fields of an entity with a set of expected values
-
makeEntityEntry
public static org.hibernate.engine.spi.EntityEntry makeEntityEntry()
-
-