KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > ofbiz > OfbizFunctionalWorkflowTestCase


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

5 package com.opensymphony.workflow.spi.ofbiz;
6
7 import com.opensymphony.workflow.config.Configuration;
8 import com.opensymphony.workflow.config.DefaultConfiguration;
9 import com.opensymphony.workflow.spi.BaseFunctionalWorkflowTest;
10 import com.opensymphony.workflow.spi.DatabaseHelper;
11
12
13 /**
14  * @author Hani Suleiman (hani@formicary.net)
15  * Date: Oct 4, 2003
16  * Time: 1:57:25 AM
17  */

18 public class OfbizFunctionalWorkflowTestCase extends BaseFunctionalWorkflowTest {
19     //~ Constructors ///////////////////////////////////////////////////////////
20

21     public OfbizFunctionalWorkflowTestCase(String JavaDoc s) {
22         super(s);
23     }
24
25     //~ Methods ////////////////////////////////////////////////////////////////
26

27     protected void setUp() throws Exception JavaDoc {
28         //ofbiz creates its own tables
29
DatabaseHelper.createDatabase("");
30         super.setUp();
31
32         Configuration config = new DefaultConfiguration();
33         config.load(getClass().getResource("/osworkflow-ofbiz.xml"));
34         workflow.setConfiguration(config);
35     }
36 }
37
Popular Tags