Class EnhancerTestUtils


  • public abstract class EnhancerTestUtils
    extends BaseUnitTestCase
    utility class to use in bytecode enhancement tests
    • Constructor Detail

      • EnhancerTestUtils

        public EnhancerTestUtils()
    • 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 EntityEntry makeEntityEntry()