Commits

Anonymous committed 01d1cfa

Renamed classes

Comments (0)

Files changed (4)

src/test/com/opensymphony/workflow/spi/hibernate3/HibernateFunctionalWorkflowTestCase.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate3;
+
+import com.opensymphony.workflow.config.Configuration;
+import com.opensymphony.workflow.config.DefaultConfiguration;
+import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
+import com.opensymphony.workflow.util.DatabaseHelper;
+import com.opensymphony.workflow.util.PropertySetDelegateImpl;
+
+import net.sf.hibernate.SessionFactory;
+
+
+/**
+ * White Box semi-functional test case that uses Hibernate as Store
+ *
+ * @author Luca Masini (l.masini@infogroup.it)
+ */
+public class HibernateFunctionalWorkflowTestCase extends AbstractFunctionalWorkflowTest {
+    //~ Instance fields ////////////////////////////////////////////////////////
+
+    org.hibernate.Session session;
+    private SessionFactory factory;
+    private org.hibernate.SessionFactory factory3;
+
+    //~ Constructors ///////////////////////////////////////////////////////////
+
+    public HibernateFunctionalWorkflowTestCase(String s) {
+        super(s);
+    }
+
+    //~ Methods ////////////////////////////////////////////////////////////////
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        DatabaseHelper.runScript("", "jdbc/CreateDS");
+
+        factory = DatabaseHelper.createPropertySetSessionFactory();
+        factory3 = DatabaseHelper.createHibernate3SessionFactory();
+        session = factory3.openSession();
+
+        Configuration config = new DefaultConfiguration();
+        config.load(getClass().getResource("/new-osworkflow-hibernate3.xml"));
+        config.getPersistenceArgs().put("session", session);
+        config.getPersistenceArgs().put("propertySetDelegate", new PropertySetDelegateImpl());
+
+        workflow.setConfiguration(config);
+    }
+
+    protected void tearDown() throws Exception {
+        session.flush();
+        session.close();
+
+        factory.close();
+        factory3.close();
+        DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS");
+    }
+}

src/test/com/opensymphony/workflow/spi/hibernate3/NewHibernateFunctionalWorkflowTestCase.java

-/*
- * Copyright (c) 2002-2003 by OpenSymphony
- * All rights reserved.
- */
-package com.opensymphony.workflow.spi.hibernate3;
-
-import com.opensymphony.workflow.config.Configuration;
-import com.opensymphony.workflow.config.DefaultConfiguration;
-import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
-import com.opensymphony.workflow.util.DatabaseHelper;
-import com.opensymphony.workflow.util.PropertySetDelegateImpl;
-
-import net.sf.hibernate.SessionFactory;
-
-
-/**
- * White Box semi-functional test case that uses Hibernate as Store
- *
- * @author Luca Masini (l.masini@infogroup.it)
- */
-public class NewHibernateFunctionalWorkflowTestCase extends AbstractFunctionalWorkflowTest {
-    //~ Instance fields ////////////////////////////////////////////////////////
-
-    org.hibernate.Session session;
-    private SessionFactory factory;
-    private org.hibernate.SessionFactory factory3;
-
-    //~ Constructors ///////////////////////////////////////////////////////////
-
-    public NewHibernateFunctionalWorkflowTestCase(String s) {
-        super(s);
-    }
-
-    //~ Methods ////////////////////////////////////////////////////////////////
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        DatabaseHelper.runScript("", "jdbc/CreateDS");
-
-        factory = DatabaseHelper.createPropertySetSessionFactory();
-        factory3 = DatabaseHelper.createHibernate3SessionFactory();
-        session = factory3.openSession();
-
-        Configuration config = new DefaultConfiguration();
-        config.load(getClass().getResource("/new-osworkflow-hibernate3.xml"));
-        config.getPersistenceArgs().put("session", session);
-        config.getPersistenceArgs().put("propertySetDelegate", new PropertySetDelegateImpl());
-
-        workflow.setConfiguration(config);
-    }
-
-    protected void tearDown() throws Exception {
-        session.flush();
-        session.close();
-
-        factory.close();
-        factory3.close();
-        DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS");
-    }
-}

src/test/com/opensymphony/workflow/spi/hibernate3/NewSpringHibernateFunctionalWorkflowTestCase.java

-/*
- * Copyright (c) 2002-2003 by OpenSymphony
- * All rights reserved.
- */
-package com.opensymphony.workflow.spi.hibernate3;
-
-import com.opensymphony.workflow.Workflow;
-import com.opensymphony.workflow.config.Configuration;
-import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
-import com.opensymphony.workflow.util.DatabaseHelper;
-
-import org.springframework.beans.factory.xml.XmlBeanFactory;
-
-import org.springframework.core.io.ClassPathResource;
-
-
-/**
- * White Box semi-functional test case that uses Spring's managed Hibernate as Store
- *
- * @author Luca Masini (l.masini@infogroup.it)
- */
-public class NewSpringHibernateFunctionalWorkflowTestCase extends AbstractFunctionalWorkflowTest {
-    //~ Constructors ///////////////////////////////////////////////////////////
-
-    public NewSpringHibernateFunctionalWorkflowTestCase(String s) {
-        super(s);
-    }
-
-    //~ Methods ////////////////////////////////////////////////////////////////
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        DatabaseHelper.runScript("", "jdbc/CreateDS");
-
-        XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("new-osworkflow-spring-hibernate3.xml"));
-
-        workflow = (Workflow) beanFactory.getBean("workflow");
-        workflow.setConfiguration((Configuration) beanFactory.getBean("osworkflowConfiguration"));
-    }
-
-    protected String getWorkflowName() {
-        return "example";
-    }
-
-    protected void tearDown() throws Exception {
-        DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS");
-    }
-}

src/test/com/opensymphony/workflow/spi/hibernate3/SpringHibernateFunctionalWorkflowTestCase.java

+/*
+ * Copyright (c) 2002-2003 by OpenSymphony
+ * All rights reserved.
+ */
+package com.opensymphony.workflow.spi.hibernate3;
+
+import com.opensymphony.workflow.Workflow;
+import com.opensymphony.workflow.config.Configuration;
+import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest;
+import com.opensymphony.workflow.util.DatabaseHelper;
+
+import org.springframework.beans.factory.xml.XmlBeanFactory;
+
+import org.springframework.core.io.ClassPathResource;
+
+
+/**
+ * White Box semi-functional test case that uses Spring's managed Hibernate as Store
+ *
+ * @author Luca Masini (l.masini@infogroup.it)
+ */
+public class SpringHibernateFunctionalWorkflowTestCase extends AbstractFunctionalWorkflowTest {
+    //~ Constructors ///////////////////////////////////////////////////////////
+
+    public SpringHibernateFunctionalWorkflowTestCase(String s) {
+        super(s);
+    }
+
+    //~ Methods ////////////////////////////////////////////////////////////////
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        DatabaseHelper.runScript("", "jdbc/CreateDS");
+
+        XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("new-osworkflow-spring-hibernate3.xml"));
+
+        workflow = (Workflow) beanFactory.getBean("workflow");
+        workflow.setConfiguration((Configuration) beanFactory.getBean("osworkflowConfiguration"));
+    }
+
+    protected String getWorkflowName() {
+        return "example";
+    }
+
+    protected void tearDown() throws Exception {
+        DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS");
+    }
+}