[jbpm-commits] JBoss JBPM SVN: r6458 - in jbpm4/trunk/modules/test-cfg/src/test: java/org/jbpm/test/slashinactivity and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Jul 4 00:36:00 EDT 2010


Author: rebody
Date: 2010-07-04 00:36:00 -0400 (Sun, 04 Jul 2010)
New Revision: 6458

Added:
   jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/slashinactivity/
   jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/slashinactivity/SlashInActivityTest.java
   jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/slashinactivity/
   jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/slashinactivity/jbpm.cfg.xml
Log:
JBPM-2904 testcase for Slash(/) in activity name.

Added: jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/slashinactivity/SlashInActivityTest.java
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/slashinactivity/SlashInActivityTest.java	                        (rev 0)
+++ jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/slashinactivity/SlashInActivityTest.java	2010-07-04 04:36:00 UTC (rev 6458)
@@ -0,0 +1,52 @@
+/*
+ * 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.test.slashinactivity;
+
+import org.jbpm.api.Configuration;
+import org.jbpm.api.Execution;
+import org.jbpm.api.ExecutionService;
+import org.jbpm.api.JbpmException;
+import org.jbpm.api.ProcessEngine;
+import org.jbpm.api.ProcessInstance;
+import org.jbpm.test.JbpmCustomCfgTestCase;
+import org.jbpm.test.JbpmTestCase;
+
+
+public class SlashInActivityTest extends JbpmCustomCfgTestCase {
+
+  private static final String PROCESS_KEY = "test_process";
+
+  private static final String TEST_PROCESS =
+    "<process name='" + PROCESS_KEY + "'>" +
+      "  <start name='1/2'>" +
+      "    <transition to='theEnd' />" +
+      "  </start>" +
+      "  <end name='theEnd' />" +
+      "</process>";
+
+  public void testSlashInActivity() {
+    deployJpdlXmlString(TEST_PROCESS);
+  }
+}

Added: jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/slashinactivity/jbpm.cfg.xml
===================================================================
--- jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/slashinactivity/jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/slashinactivity/jbpm.cfg.xml	2010-07-04 04:36:00 UTC (rev 6458)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbpm-configuration>
+
+  <import resource="jbpm.default.cfg.xml" />
+  <import resource="jbpm.tx.hibernate.cfg.xml" />
+  <import resource="jbpm.jpdl.cfg.xml" />
+
+  <process-engine-context>
+    <true name='jbpm.activity.allow.slash'/>
+  </process-engine-context>
+
+</jbpm-configuration>



More information about the jbpm-commits mailing list