1 /*2 * Copyright (c) 2002-2003 by OpenSymphony3 * 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, 200316 * Time: 1:57:25 AM17 */18 public class OfbizFunctionalWorkflowTestCase extends BaseFunctionalWorkflowTest {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 tables29 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