[jboss-svn-commits] JBL Code SVN: r12295 - in labs/jbossrules/trunk/drools-core/src/test/java/org/drools: reteoo and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jun 1 21:07:23 EDT 2007
Author: mark.proctor at jboss.com
Date: 2007-06-01 21:07:23 -0400 (Fri, 01 Jun 2007)
New Revision: 12295
Modified:
labs/jbossrules/trunk/drools-core/src/test/java/org/drools/RuleBaseConfigurationTest.java
labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/LogicalAssertionTest.java
Log:
-updated the tests to undo system changes at the end.
Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/RuleBaseConfigurationTest.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/RuleBaseConfigurationTest.java 2007-06-01 22:09:40 UTC (rev 12294)
+++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/RuleBaseConfigurationTest.java 2007-06-02 01:07:23 UTC (rev 12295)
@@ -18,6 +18,8 @@
cfg = new RuleBaseConfiguration();
assertEquals( AssertBehaviour.EQUALITY,
cfg.getAssertBehaviour() );
+
+ System.getProperties().remove( "drools.assertBehaviour" );
}
public void testProgrammaticPropertiesFile() {
@@ -32,6 +34,8 @@
assertEquals( false,
cfg.isIndexLeftBetaMemory() );
+
+ System.getProperties().remove( "drools.indexLeftBetaMemory" );
}
}
Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/LogicalAssertionTest.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/LogicalAssertionTest.java 2007-06-01 22:09:40 UTC (rev 12294)
+++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/LogicalAssertionTest.java 2007-06-02 01:07:23 UTC (rev 12295)
@@ -225,7 +225,7 @@
*
* @throws Exception
*/
- public void FIXMEtestStatedOverrideDiscard() throws Exception {
+ public void testStatedOverrideDiscard() throws Exception {
// create a RuleBase with a single ObjectTypeNode we attach a
// MockObjectSink so we can detect assertions and retractions
final Rule rule1 = new Rule( "test-rule1" );
@@ -359,7 +359,7 @@
*
* @throws Exception
*/
- public void FIXMEtestStatedOverridePreserve() throws Exception {
+ public void testStatedOverridePreserve() throws Exception {
// create a RuleBase with a single ObjectTypeNode we attach a
// MockObjectSink so we can detect assertions and retractions
final Rule rule1 = new Rule( "test-rule1" );
@@ -674,7 +674,7 @@
*
* @throws Exception
*/
- public void FIXMEtestMultipleAssert() throws Exception {
+ public void testMultipleAssert() throws Exception {
// create a RuleBase with a single ObjectTypeNode we attach a
// MockObjectSink so we can detect assertions and retractions
final Rule rule1 = new Rule( "test-rule1" );
More information about the jboss-svn-commits
mailing list