01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.spi.ofbiz;
06:
07: import com.opensymphony.workflow.config.Configuration;
08: import com.opensymphony.workflow.config.DefaultConfiguration;
09: import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
10: import com.opensymphony.workflow.util.DatabaseHelper;
11:
12: /**
13: * @author Hani Suleiman (hani@formicary.net)
14: * Date: Oct 4, 2003
15: * Time: 1:57:25 AM
16: */
17: public class OfbizFunctionalWorkflowTestCase extends
18: AbstractFunctionalWorkflowTest {
19: //~ Constructors ///////////////////////////////////////////////////////////
20:
21: public OfbizFunctionalWorkflowTestCase(String s) {
22: super (s);
23: }
24:
25: //~ Methods ////////////////////////////////////////////////////////////////
26:
27: protected void setUp() throws Exception {
28: //ofbiz creates its own tables
29: DatabaseHelper.runScript("", "jdbc/CreateDS");
30: super .setUp();
31:
32: Configuration config = new DefaultConfiguration();
33: config.load(getClass().getResource("/osworkflow-ofbiz.xml"));
34: workflow.setConfiguration(config);
35: }
36: }
|