[jboss-svn-commits] JBL Code SVN: r11887 - labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed May 16 07:57:08 EDT 2007


Author: mshaw
Date: 2007-05-16 07:57:07 -0400 (Wed, 16 May 2007)
New Revision: 11887

Modified:
   labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java
Log:


Modified: labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java
===================================================================
--- labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java	2007-05-16 11:48:05 UTC (rev 11886)
+++ labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java	2007-05-16 11:57:07 UTC (rev 11887)
@@ -1,5 +1,6 @@
 package org.drools.testing.core.engine;
 
+import org.drools.WorkingMemory;
 import org.drools.rule.Package;
 import org.drools.testing.core.exception.RuleTestLanguageException;
 import org.drools.testing.core.exception.RuleTestServiceUnavailableException;
@@ -52,11 +53,6 @@
 	}
 	
 	/**
-	 * This is the method which converts the model into a set of facts to be
-	 * inserted into working memory.
-	 * 
-	 *  The objects are created asserted. Any agenda filters required are added.
-	 *  The tests are executed and the result set is populated.
 	 *
 	 */
 	private void parseTestSuite () throws RuleTestLanguageException {
@@ -65,7 +61,21 @@
 			parseScenario(testSuite.getScenarios()[i]);
 	}
 	
+	/**
+	 * The objects are created asserted. Any agenda filters required are added.
+	 *  The tests are executed and the result set is populated.
+	 * 
+	 * @param scenario
+	 * @throws RuleTestLanguageException
+	 */
 	private void parseScenario (Scenario scenario) throws RuleTestLanguageException {
 		
+		// create the working memory
+		WorkingMemory wm = RuleBaseWrapper.getInstance().getRuleBase().newWorkingMemory(true);
+		
+		// assert the facts
+		for (int i=0; i<scenario.getFacts().length; i++) {
+			
+		}
 	}
 }




More information about the jboss-svn-commits mailing list