Commits

Anonymous committed dfb5807

Set the PropertySet delegate for the Store

  • Participants
  • Parent commits d275b3d

Comments (0)

Files changed (2)

File src/test/com/opensymphony/workflow/spi/hibernate/NewHibernateFunctionalWorkflowTestCase.java

  */
 package com.opensymphony.workflow.spi.hibernate;
 
-import com.opensymphony.workflow.basic.BasicWorkflow;
 import com.opensymphony.workflow.config.Configuration;
 import com.opensymphony.workflow.config.DefaultConfiguration;
 import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
         config.load(getClass().getResource("/new-osworkflow-hibernate.xml"));
         config.getPersistenceArgs().put("session", session);
 
+        DefaultHibernatePropertySetDelegate propertySetDelegate = new DefaultHibernatePropertySetDelegate();
+        propertySetDelegate.setSessionFactory(factory);
+        config.getPersistenceArgs().put("propertySetDelegate", propertySetDelegate);
+
         workflow.setConfiguration(config);
     }
 

File src/test/com/opensymphony/workflow/spi/hibernate3/NewHibernateFunctionalWorkflowTestCase.java

  */
 package com.opensymphony.workflow.spi.hibernate3;
 
-import com.opensymphony.workflow.basic.BasicWorkflow;
 import com.opensymphony.workflow.config.Configuration;
 import com.opensymphony.workflow.config.DefaultConfiguration;
 import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
 import com.opensymphony.workflow.util.DatabaseHelper;
+import com.opensymphony.workflow.util.PropertySetDelegateImpl;
 
 import net.sf.hibernate.SessionFactory;
 
         Configuration config = new DefaultConfiguration();
         config.load(getClass().getResource("/new-osworkflow-hibernate3.xml"));
         config.getPersistenceArgs().put("session", session);
-        config.getPersistenceArgs().put("sessionFactory", factory);
+        config.getPersistenceArgs().put("propertySetDelegate", new PropertySetDelegateImpl());
 
         workflow.setConfiguration(config);
     }