[jboss-svn-commits] JBL Code SVN: r12207 - in labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core: model and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue May 29 05:16:11 EDT 2007
Author: mshaw
Date: 2007-05-29 05:16:10 -0400 (Tue, 29 May 2007)
New Revision: 12207
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/model/Outcome.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-29 09:02:01 UTC (rev 12206)
+++ labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/engine/TestRunner.java 2007-05-29 09:16:10 UTC (rev 12207)
@@ -13,6 +13,7 @@
import org.drools.testing.core.filters.MultipleRuleAgendaFilter;
import org.drools.testing.core.model.Fact;
import org.drools.testing.core.model.Field;
+import org.drools.testing.core.model.Outcome;
import org.drools.testing.core.model.Rule;
import org.drools.testing.core.model.Scenario;
import org.drools.testing.core.utils.ObjectUtils;
@@ -169,5 +170,13 @@
*/
private void setOutcomes (Scenario scenario, WorkingMemory wm) throws RuleTestLanguageException {
+ // iterate over the outcomes and process each assertion
+ Iterator i = scenario.getOutcomes().iterator();
+ while (i.hasNext()) {
+ Outcome outcome = (Outcome) i.next();
+
+ }
}
+
+
}
Modified: labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/model/Outcome.java
===================================================================
--- labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/model/Outcome.java 2007-05-29 09:02:01 UTC (rev 12206)
+++ labs/jbossrules/trunk/experimental/drools-testing/src/org/drools/testing/core/model/Outcome.java 2007-05-29 09:16:10 UTC (rev 12207)
@@ -15,6 +15,8 @@
private String state;
private Collection rules = new ArrayList();
private Collection assertions = new ArrayList();
+ private Collection passedAssertions = new ArrayList();
+ private Collection failedAssertions = new ArrayList();
private static final String STATE_PASS = "PASS";
private static final String STATE_PARTIAL_PASS = "PARTIAL PASS";
private static final String STATE_FAIL = "FAIL";
@@ -52,6 +54,22 @@
public void setState(String state) {
this.state = state;
}
+
+ public Collection getFailedAssertions() {
+ return failedAssertions;
+ }
+
+ public void setFailedAssertions(Collection failedAssertions) {
+ this.failedAssertions = failedAssertions;
+ }
+
+ public Collection getPassedAssertions() {
+ return passedAssertions;
+ }
+
+ public void setPassedAssertions(Collection passedAssertions) {
+ this.passedAssertions = passedAssertions;
+ }
}
More information about the jboss-svn-commits
mailing list