[jboss-svn-commits] JBL Code SVN: r11891 - 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 08:42:07 EDT 2007


Author: mshaw
Date: 2007-05-16 08:42:07 -0400 (Wed, 16 May 2007)
New Revision: 11891

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 12:34:25 UTC (rev 11890)
+++ labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java	2007-05-16 12:42:07 UTC (rev 11891)
@@ -74,7 +74,6 @@
 	 */
 	private void parseScenario (Scenario scenario) throws RuleTestLanguageException {
 		
-		
 		// create the working memory
 		WorkingMemory wm = RuleBaseWrapper.getInstance().getRuleBase().newWorkingMemory(true);
 		
@@ -82,12 +81,14 @@
 		for (int i=0; i<scenario.getFacts().length; i++) {
 			Fact factDefn = scenario.getFacts()[i];
 			Class classDefn = ObjectUtils.getClassDefn(factDefn.getType(), pkg.getImports(),null);
+			Object fact;
 			try {
-				Object fact = classDefn.newInstance(); 
+				fact = classDefn.newInstance(); 
 			}catch (Exception e) {
 				throw new RuleTestServiceUnavailableException("Exception ocurred",e);
 			}
 			
+			
 		}
 	}
 }




More information about the jboss-svn-commits mailing list