Author: Grid.Qian
Date: 2008-11-28 04:00:32 -0500 (Fri, 28 Nov 2008)
New Revision: 12112
Modified:
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/gpd.xml
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/processdefinition.xml
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/src/org/jboss/tools/jbpm/convert/test/BpmnConvertTest.java
Log:
JBIDE-3309:modify tests for jbpm convert modules
Modified:
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/gpd.xml
===================================================================
---
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/gpd.xml 2008-11-28 08:39:29 UTC (rev 12111)
+++
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/gpd.xml 2008-11-28 09:00:32 UTC (rev 12112)
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-<process-diagram name="Policy Pricing" width="1500"
height="214">
- <node width="100" height="40" name="Price Policy"
x="144" y="0"> <transition name="au_gen_3">
<label x="5" y="-10"/> </transition> </node>
<node width="100" height="40" name="Review Pricing"
x="555" y="141"> <transition name="au_gen_4">
<label x="5" y="-10"/> </transition> </node>
<node width="100" height="40" name=" Price Calculated
?" x="373" y="16"> <transition
name="false"> <label x="5" y="-10"/>
</transition> <transition name="true"> <label
x="5" y="-10"/> </transition> </node> <node
width="100" height="40" name="au_gen" x="16"
y="80"> <transition name="au_gen_2"> <label
x="5" y="-10"/> </transition> </node> <node
width="100" height="40" name="au_gen_1" x="832"
y="80"/></process-diagram>
+<process-diagram name="Policy Pricing" width="1500"
height="214">
+ <node width="100" height="40" name="Price Policy"
x="144" y="0"> <transition name="au_gen_3">
<label x="5" y="-10"/> </transition> </node>
<node width="100" height="40" name="Review Pricing"
x="555" y="141"> <transition name="au_gen_4">
<label x="5" y="-10"/> </transition> </node>
<node width="100" height="40" name="au_gen_1"
x="832" y="80"/> <node width="100"
height="40" name=" Price Calculated ?" x="373"
y="16"> <transition name="false"> <label
x="5" y="-10"/> </transition> <transition
name="true"> <label x="5" y="-10"/>
</transition> </node> <node width="100" height="40"
name="au_gen" x="16" y="80"> <transition
name="au_gen_2"> <label x="5" y="-10"/>
</transition> </node></process-diagram>
Modified:
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/processdefinition.xml
===================================================================
---
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/processdefinition.xml 2008-11-28 08:39:29 UTC (rev 12111)
+++
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/resultfile/PolicyPricingProcess.bpmn/Policy
Pricing/processdefinition.xml 2008-11-28 09:00:32 UTC (rev 12112)
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Policy
Pricing">
- <node name="Price Policy"> <transition name="au_gen_3"
to=" Price Calculated ?"/> </node> <start-state
name="au_gen"> <transition name="au_gen_2" to="Price
Policy"/> </start-state> <decision name=" Price Calculated
?"> <transition name="false" to="au_gen_1"/>
<transition name="true" to="Review Pricing"/> </decision>
<node name="Review Pricing"> <transition name="au_gen_4"
to="au_gen_1"/> </node> <end-state
name="au_gen_1"/></process-definition>
+<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Policy
Pricing">
+ <node name="Price Policy"> <transition name="au_gen_3"
to=" Price Calculated ?"/> </node> <start-state
name="au_gen"> <transition name="au_gen_2" to="Price
Policy"/> </start-state> <decision name=" Price Calculated
?"> <transition name="false" to="au_gen_1"/>
<transition name="true" to="Review Pricing"/> </decision>
<node name="Review Pricing"> <transition name="au_gen_4"
to="au_gen_1"/> </node> <end-state
name="au_gen_1"/></process-definition>
Modified:
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/src/org/jboss/tools/jbpm/convert/test/BpmnConvertTest.java
===================================================================
---
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/src/org/jboss/tools/jbpm/convert/test/BpmnConvertTest.java 2008-11-28
08:39:29 UTC (rev 12111)
+++
trunk/jbpm/tests/org.jboss.tools.jbpm.convert.test/src/org/jboss/tools/jbpm/convert/test/BpmnConvertTest.java 2008-11-28
09:00:32 UTC (rev 12112)
@@ -16,9 +16,16 @@
public class BpmnConvertTest extends TestCase {
public void testConvert() throws IOException {
- String absolutePath = Platform.getBundle(
- "org.jboss.tools.jbpm.convert.test").getLocation()
- .substring(16);
+ String absolutePath = "";
+ if (System.getProperty("os.name").toLowerCase().indexOf("win")
>= 0) {
+ absolutePath = Platform.getBundle(
+ "org.jboss.tools.jbpm.convert.test").getLocation()
+ .substring(16);
+ } else {
+ absolutePath = Platform.getBundle(
+ "org.jboss.tools.jbpm.convert.test").getLocation()
+ .substring(15);
+ }
String bpmnfilePath = absolutePath + "testfile";
String expectedPath = absolutePath + "resultfile";
File[] bpmnFiles = listAll(bpmnfilePath);
@@ -52,7 +59,7 @@
if (!compareWithExpectedResult(tmpLocation + File.separator
+ "jpdl" + File.separator + name, expectedPath
+ File.separator + name)) {
- System.out.println("the testing bpmn named /" + str1
+ System.out.println("the testing bpmn named /" + name
+ " tranformation is failure");
assertEquals(true, false);