KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > hibernate > SpringHibernateFunctionalWorkflowTestCase


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.spi.hibernate;
6
7 import com.opensymphony.workflow.config.Configuration;
8 import com.opensymphony.workflow.spi.BaseFunctionalWorkflowTest;
9 import com.opensymphony.workflow.spi.DatabaseHelper;
10
11 import org.springframework.beans.factory.xml.XmlBeanFactory;
12
13 import org.springframework.core.io.ClassPathResource;
14
15
16 /**
17  * @author Quake Wang
18  * @since 2004-5-2
19  * @version $Revision: 1.2 $
20  *
21  **/

22 public class SpringHibernateFunctionalWorkflowTestCase extends BaseFunctionalWorkflowTest {
23     //~ Constructors ///////////////////////////////////////////////////////////
24

25     public SpringHibernateFunctionalWorkflowTestCase(String JavaDoc s) {
26         super(s);
27     }
28
29     //~ Methods ////////////////////////////////////////////////////////////////
30

31     protected void setUp() throws Exception JavaDoc {
32         super.setUp();
33         DatabaseHelper.createDatabase("");
34
35         XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("osworkflow-spring.xml"));
36
37         //workflow = (AbstractWorkflow) beanFactory.getBean("workflow");
38
workflow.setConfiguration((Configuration) beanFactory.getBean("osworkflowConfiguration"));
39     }
40 }
41
Popular Tags