[jbpm-commits] JBoss JBPM SVN: r2780 - in jbpm3/trunk/modules/core: src/test/java/org/jbpm/db and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 6 11:34:22 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-11-06 11:34:21 -0500 (Thu, 06 Nov 2008)
New Revision: 2780

Added:
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/db/JbpmSchemaDbTest.java
Modified:
   jbpm3/trunk/modules/core/pom.xml
Log:
[JBPM-1810] Fix clean, drop, create schema with JbpmSchema

Modified: jbpm3/trunk/modules/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/core/pom.xml	2008-11-06 15:51:44 UTC (rev 2779)
+++ jbpm3/trunk/modules/core/pom.xml	2008-11-06 16:34:21 UTC (rev 2780)
@@ -223,6 +223,8 @@
               <excludes>
                 <!-- Concurrent execution not supported on hsqldb -->
                 <exclude>org/jbpm/jbpm983/JBPM983Test.java</exclude>
+                <!-- https://jira.jboss.org/jira/browse/JBPM-????  -->
+                <exclude>org/jbpm/db/JbpmSchemaDbTest.java</exclude>
               </excludes>
             </configuration>
           </plugin>
@@ -250,6 +252,8 @@
               <excludes>
                 <!-- Concurrent execution not supported on hsqldb -->
                 <exclude>org/jbpm/jbpm983/JBPM983Test.java</exclude>
+                <!-- https://jira.jboss.org/jira/browse/JBPM-????  -->
+                <exclude>org/jbpm/db/JbpmSchemaDbTest.java</exclude>
               </excludes>
             </configuration>
           </plugin>
@@ -279,6 +283,8 @@
                 <exclude>org/jbpm/graph/node/ProcessStateDbTest.java</exclude>
                 <!-- https://jira.jboss.org/jira/browse/JBPM-1166 -->
                 <exclude>org/jbpm/seam/JobExecutorCustomizationTest.java</exclude>
+                <!-- https://jira.jboss.org/jira/browse/JBPM-????  -->
+                <exclude>org/jbpm/db/JbpmSchemaDbTest.java</exclude>
               </excludes>
             </configuration>
           </plugin>
@@ -309,6 +315,8 @@
                 <exclude>org/jbpm/graph/exe/SubProcessPlusConcurrencyDbTest.java</exclude>
                 <!-- https://jira.jboss.org/jira/browse/JBPM-1782 -->
                 <exclude>org/jbpm/jpdl/exe/JoinExecutionDbTest.java</exclude>
+                <!-- https://jira.jboss.org/jira/browse/JBPM-????  -->
+                <exclude>org/jbpm/db/JbpmSchemaDbTest.java</exclude>
               </excludes>
             </configuration>
           </plugin>
@@ -336,6 +344,8 @@
               <excludes>
                 <!-- https://jira.jboss.org/jira/browse/JBPM-1764 -->
                 <exclude>org/jbpm/job/executor/JobExecutorDbTest</exclude>
+                <!-- https://jira.jboss.org/jira/browse/JBPM-????  -->
+                <exclude>org/jbpm/db/JbpmSchemaDbTest.java</exclude>
               </excludes>
             </configuration>
           </plugin>

Added: jbpm3/trunk/modules/core/src/test/java/org/jbpm/db/JbpmSchemaDbTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/db/JbpmSchemaDbTest.java	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/db/JbpmSchemaDbTest.java	2008-11-06 16:34:21 UTC (rev 2780)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.db;
+
+import org.hibernate.cfg.Configuration;
+import org.jbpm.AbstractJbpmTestCase;
+
+/**
+ * Test the JbpmSchema utility
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 06-Nov-2008
+ */
+public class JbpmSchemaDbTest extends AbstractJbpmTestCase
+{
+  public void testCleanSchema()
+  {
+    Configuration config = new Configuration().configure();
+    JbpmSchema jbpmSchema = new JbpmSchema(config);
+    jbpmSchema.cleanSchema();
+  }
+  
+  public void testDropSchema()
+  {
+    Configuration config = new Configuration().configure();
+    JbpmSchema jbpmSchema = new JbpmSchema(config);
+    jbpmSchema.dropSchema();
+  }
+
+  public void testCreateSchema()
+  {
+    Configuration config = new Configuration().configure();
+    JbpmSchema jbpmSchema = new JbpmSchema(config);
+    jbpmSchema.createSchema();
+  }
+}


Property changes on: jbpm3/trunk/modules/core/src/test/java/org/jbpm/db/JbpmSchemaDbTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbpm-commits mailing list