Commits

Anonymous committed 0d60ea2

Cast to BasicWorkflow because we want a method specific to that class and now we are using Workflow interface

  • Participants
  • Parent commits deb41d5

Comments (0)

Files changed (1)

File src/test/com/opensymphony/workflow/spi/hibernate/HibernateFunctionalWorkflowTestCase.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;
         Configuration config = new DefaultConfiguration();
         config.load(getClass().getResource("/osworkflow-hibernate.xml"));
         workflow.setConfiguration(config);
-        workflow.getConfiguration().getPersistenceArgs().put("sessionFactory", factory);
+        ((BasicWorkflow)workflow).getConfiguration().getPersistenceArgs().put("sessionFactory", factory);
     }
 
     protected void tearDown() throws Exception {