[jboss-svn-commits] JBL Code SVN: r19450 - in labs/jbossrules/trunk/drools-compiler/src/test: resources/org/drools/integrationtests and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Apr 7 08:35:34 EDT 2008


Author: KrisVerlaenen
Date: 2008-04-07 08:35:34 -0400 (Mon, 07 Apr 2008)
New Revision: 19450

Removed:
   labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/ruleflow2.rfm
Modified:
   labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderTest.java
Log:


Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderTest.java	2008-04-07 10:37:46 UTC (rev 19449)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/PackageBuilderTest.java	2008-04-07 12:35:34 UTC (rev 19450)
@@ -1221,25 +1221,6 @@
         assertTrue( p instanceof WorkflowProcessImpl );
     }
 
-    public void testRuleFlowMoreComplex() throws Exception {
-        PackageBuilder builder = new PackageBuilder();
-
-        InputStream in = this.getClass().getResourceAsStream( "/org/drools/integrationtests/ruleflow2.rfm" );
-        assertNotNull( in );
-
-        builder.addPackage( new PackageDescr( "com.sample" ) );
-
-        builder.addRuleFlow( new InputStreamReader( in ) );
-        Package pkg = builder.getPackage();
-        assertNotNull( pkg );
-
-        Map flows = pkg.getRuleFlows();
-        assertNotNull( flows );
-        assertEquals( 1,
-                      flows.size() );
-
-    }
-
     public void testPackageRuleFlows() throws Exception {
         Package pkg = new Package( "boo" );
         Process rf = new MockRuleFlow( "1" );

Deleted: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/ruleflow2.rfm
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/ruleflow2.rfm	2008-04-07 10:37:46 UTC (rev 19449)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/ruleflow2.rfm	2008-04-07 12:35:34 UTC (rev 19450)
@@ -1,243 +0,0 @@
-<org.drools.ruleflow.core.RuleFlowProcess id="1">
-  <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess$WorkflowProcessNodeContainer" id="2">
-    <outer-class class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-    <nodes id="3">
-      <entry>
-        <long>1</long>
-        <org.drools.workflow.core.node.StartNode id="4">
-          <id>1</id>
-          <name>Start</name>
-          <incomingConnections id="5"/>
-          <outgoingConnections id="6">
-            <entry>
-              <string>DROOLS_DEFAULT</string>
-              <list id="7">
-                <org.drools.workflow.core.impl.ConnectionImpl id="8">
-                  <from class="org.drools.workflow.core.node.StartNode" reference="4"/>
-                  <to class="org.drools.workflow.core.node.RuleSetNode" id="9">
-                    <ruleFlowGroup>flowgroup-1</ruleFlowGroup>
-                    <id>2</id>
-                    <name>RuleSet1</name>
-                    <incomingConnections id="10">
-                      <entry>
-                        <string>DROOLS_DEFAULT</string>
-                        <list id="11">
-                          <org.drools.workflow.core.impl.ConnectionImpl reference="8"/>
-                        </list>
-                      </entry>
-                    </incomingConnections>
-                    <outgoingConnections id="12">
-                      <entry>
-                        <string>DROOLS_DEFAULT</string>
-                        <list id="13">
-                          <org.drools.workflow.core.impl.ConnectionImpl id="14">
-                            <from class="org.drools.workflow.core.node.RuleSetNode" reference="9"/>
-                            <to class="org.drools.workflow.core.node.Split" id="15">
-                              <type>1</type>
-                              <constraints id="16"/>
-                              <id>5</id>
-                              <name>Split</name>
-                              <incomingConnections id="17">
-                                <entry>
-                                  <string>DROOLS_DEFAULT</string>
-                                  <list id="18">
-                                    <org.drools.workflow.core.impl.ConnectionImpl reference="14"/>
-                                  </list>
-                                </entry>
-                              </incomingConnections>
-                              <outgoingConnections id="19">
-                                <entry>
-                                  <string>DROOLS_DEFAULT</string>
-                                  <list id="20">
-                                    <org.drools.workflow.core.impl.ConnectionImpl id="21">
-                                      <from class="org.drools.workflow.core.node.Split" reference="15"/>
-                                      <to class="org.drools.workflow.core.node.RuleSetNode" id="22">
-                                        <ruleFlowGroup>flowgroup-2</ruleFlowGroup>
-                                        <id>10</id>
-                                        <name>RuleSet2</name>
-                                        <incomingConnections id="23">
-                                          <entry>
-                                            <string>DROOLS_DEFAULT</string>
-                                            <list id="24">
-                                              <org.drools.workflow.core.impl.ConnectionImpl reference="21"/>
-                                            </list>
-                                          </entry>
-                                        </incomingConnections>
-                                        <outgoingConnections id="25">
-                                          <entry>
-                                            <string>DROOLS_DEFAULT</string>
-                                            <list id="26">
-                                              <org.drools.workflow.core.impl.ConnectionImpl id="27">
-                                                <from class="org.drools.workflow.core.node.RuleSetNode" reference="22"/>
-                                                <to class="org.drools.workflow.core.node.Join" id="28">
-                                                  <type>1</type>
-                                                  <id>6</id>
-                                                  <name>Join</name>
-                                                  <incomingConnections id="29">
-                                                    <entry>
-                                                      <string>DROOLS_DEFAULT</string>
-                                                      <list id="30">
-                                                        <org.drools.workflow.core.impl.ConnectionImpl reference="27"/>
-                                                        <org.drools.workflow.core.impl.ConnectionImpl id="31">
-                                                          <from class="org.drools.workflow.core.node.RuleSetNode" id="32">
-                                                            <ruleFlowGroup>flowgroup-3</ruleFlowGroup>
-                                                            <id>11</id>
-                                                            <name>RuleSet3</name>
-                                                            <incomingConnections id="33">
-                                                              <entry>
-                                                                <string>DROOLS_DEFAULT</string>
-                                                                <list id="34">
-                                                                  <org.drools.workflow.core.impl.ConnectionImpl id="35">
-                                                                    <from class="org.drools.workflow.core.node.Split" reference="15"/>
-                                                                    <to class="org.drools.workflow.core.node.RuleSetNode" reference="32"/>
-                                                                    <fromType>DROOLS_DEFAULT</fromType>
-                                                                    <toType>DROOLS_DEFAULT</toType>
-                                                                  </org.drools.workflow.core.impl.ConnectionImpl>
-                                                                </list>
-                                                              </entry>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="36">
-                                                              <entry>
-                                                                <string>DROOLS_DEFAULT</string>
-                                                                <list id="37">
-                                                                  <org.drools.workflow.core.impl.ConnectionImpl reference="31"/>
-                                                                </list>
-                                                              </entry>
-                                                            </outgoingConnections>
-                                                            <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                                                          </from>
-                                                          <to class="org.drools.workflow.core.node.Join" reference="28"/>
-                                                          <fromType>DROOLS_DEFAULT</fromType>
-                                                          <toType>DROOLS_DEFAULT</toType>
-                                                        </org.drools.workflow.core.impl.ConnectionImpl>
-                                                      </list>
-                                                    </entry>
-                                                  </incomingConnections>
-                                                  <outgoingConnections id="38">
-                                                    <entry>
-                                                      <string>DROOLS_DEFAULT</string>
-                                                      <list id="39">
-                                                        <org.drools.workflow.core.impl.ConnectionImpl id="40">
-                                                          <from class="org.drools.workflow.core.node.Join" reference="28"/>
-                                                          <to class="org.drools.workflow.core.node.RuleSetNode" id="41">
-                                                            <ruleFlowGroup>flowgroup-4</ruleFlowGroup>
-                                                            <id>9</id>
-                                                            <name>RuleSet4</name>
-                                                            <incomingConnections id="42">
-                                                              <entry>
-                                                                <string>DROOLS_DEFAULT</string>
-                                                                <list id="43">
-                                                                  <org.drools.workflow.core.impl.ConnectionImpl reference="40"/>
-                                                                </list>
-                                                              </entry>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="44">
-                                                              <entry>
-                                                                <string>DROOLS_DEFAULT</string>
-                                                                <list id="45">
-                                                                  <org.drools.workflow.core.impl.ConnectionImpl id="46">
-                                                                    <from class="org.drools.workflow.core.node.RuleSetNode" reference="41"/>
-                                                                    <to class="org.drools.workflow.core.node.EndNode" id="47">
-                                                                      <id>4</id>
-                                                                      <name>End</name>
-                                                                      <incomingConnections id="48">
-                                                                        <entry>
-                                                                          <string>DROOLS_DEFAULT</string>
-                                                                          <list id="49">
-                                                                            <org.drools.workflow.core.impl.ConnectionImpl reference="46"/>
-                                                                          </list>
-                                                                        </entry>
-                                                                      </incomingConnections>
-                                                                      <outgoingConnections id="50"/>
-                                                                      <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                                                                    </to>
-                                                                    <fromType>DROOLS_DEFAULT</fromType>
-                                                                    <toType>DROOLS_DEFAULT</toType>
-                                                                  </org.drools.workflow.core.impl.ConnectionImpl>
-                                                                </list>
-                                                              </entry>
-                                                            </outgoingConnections>
-                                                            <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                                                          </to>
-                                                          <fromType>DROOLS_DEFAULT</fromType>
-                                                          <toType>DROOLS_DEFAULT</toType>
-                                                        </org.drools.workflow.core.impl.ConnectionImpl>
-                                                      </list>
-                                                    </entry>
-                                                  </outgoingConnections>
-                                                  <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                                                </to>
-                                                <fromType>DROOLS_DEFAULT</fromType>
-                                                <toType>DROOLS_DEFAULT</toType>
-                                              </org.drools.workflow.core.impl.ConnectionImpl>
-                                            </list>
-                                          </entry>
-                                        </outgoingConnections>
-                                        <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                                      </to>
-                                      <fromType>DROOLS_DEFAULT</fromType>
-                                      <toType>DROOLS_DEFAULT</toType>
-                                    </org.drools.workflow.core.impl.ConnectionImpl>
-                                    <org.drools.workflow.core.impl.ConnectionImpl reference="35"/>
-                                  </list>
-                                </entry>
-                              </outgoingConnections>
-                              <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                            </to>
-                            <fromType>DROOLS_DEFAULT</fromType>
-                            <toType>DROOLS_DEFAULT</toType>
-                          </org.drools.workflow.core.impl.ConnectionImpl>
-                        </list>
-                      </entry>
-                    </outgoingConnections>
-                    <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-                  </to>
-                  <fromType>DROOLS_DEFAULT</fromType>
-                  <toType>DROOLS_DEFAULT</toType>
-                </org.drools.workflow.core.impl.ConnectionImpl>
-              </list>
-            </entry>
-          </outgoingConnections>
-          <nodeContainer class="org.drools.ruleflow.core.RuleFlowProcess" reference="1"/>
-        </org.drools.workflow.core.node.StartNode>
-      </entry>
-      <entry>
-        <long>2</long>
-        <org.drools.workflow.core.node.RuleSetNode reference="9"/>
-      </entry>
-      <entry>
-        <long>4</long>
-        <org.drools.workflow.core.node.EndNode reference="47"/>
-      </entry>
-      <entry>
-        <long>5</long>
-        <org.drools.workflow.core.node.Split reference="15"/>
-      </entry>
-      <entry>
-        <long>6</long>
-        <org.drools.workflow.core.node.Join reference="28"/>
-      </entry>
-      <entry>
-        <long>9</long>
-        <org.drools.workflow.core.node.RuleSetNode reference="41"/>
-      </entry>
-      <entry>
-        <long>10</long>
-        <org.drools.workflow.core.node.RuleSetNode reference="22"/>
-      </entry>
-      <entry>
-        <long>11</long>
-        <org.drools.workflow.core.node.RuleSetNode reference="32"/>
-      </entry>
-    </nodes>
-    <lastNodeId>11</lastNodeId>
-  </nodeContainer>
-  <id>0</id>
-  <name>ruleflow</name>
-  <version>1</version>
-  <type>RuleFlow</type>
-  <packageName>testPackageWithRuleFlow</packageName>
-  <variableScope class="org.drools.process.core.impl.VariableScopeImpl" id="51">
-    <variables id="52"/>
-  </variableScope>
-</org.drools.ruleflow.core.RuleFlowProcess>
\ No newline at end of file




More information about the jboss-svn-commits mailing list