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 void
checkDirtyTracking(Object entityInstance, String... dirtyFields)
compares the dirty fields of an entity with a set of expected valuesstatic void
clearDirtyTracking(Object entityInstance)
clears the dirty set for an entitystatic Object
getFieldByReflection(Object entity, String fieldName)
static EntityEntry
makeEntityEntry()
-
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
assertNoLeaks, checkClearSchema, 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 EntityEntry makeEntityEntry()
-
-