[jboss-svn-commits] JBL Code SVN: r11892 - 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:52:24 EDT 2007
Author: mshaw
Date: 2007-05-16 08:52:24 -0400 (Wed, 16 May 2007)
New Revision: 11892
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:42:07 UTC (rev 11891)
+++ labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java 2007-05-16 12:52:24 UTC (rev 11892)
@@ -1,10 +1,12 @@
package org.drools.testing.core.engine;
+import org.codehaus.plexus.util.PropertyUtils;
import org.drools.WorkingMemory;
import org.drools.rule.Package;
import org.drools.testing.core.exception.RuleTestLanguageException;
import org.drools.testing.core.exception.RuleTestServiceUnavailableException;
import org.drools.testing.core.model.Fact;
+import org.drools.testing.core.model.Field;
import org.drools.testing.core.model.Scenario;
import org.drools.testing.core.utils.ObjectUtils;
import org.drools.testing.core.wrapper.RuleBaseWrapper;
@@ -88,7 +90,13 @@
throw new RuleTestServiceUnavailableException("Exception ocurred",e);
}
-
+ // get the fields to set from the fact definition
+ Field[] fields = factDefn.getFields();
+ for (int j=0; j<fields.length; j++) {
+ Field field = fields[j];
+ // set the property on our newly instantiated fact bean
+
+ }
}
}
}
More information about the jboss-svn-commits
mailing list