[jboss-svn-commits] JBL Code SVN: r17659 - labs/jbossrules/branches/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jan 9 15:16:00 EST 2008
Author: tirelli
Date: 2008-01-09 15:16:00 -0500 (Wed, 09 Jan 2008)
New Revision: 17659
Modified:
labs/jbossrules/branches/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java
Log:
JBRULES-1397: uncommenting tests
Modified: labs/jbossrules/branches/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java
===================================================================
--- labs/jbossrules/branches/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java 2008-01-09 18:02:21 UTC (rev 17658)
+++ labs/jbossrules/branches/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java 2008-01-09 20:16:00 UTC (rev 17659)
@@ -20,8 +20,6 @@
import org.drools.Cheese;
import org.drools.FactA;
import org.drools.FactB;
-import org.drools.Order;
-import org.drools.OrderItem;
import org.drools.Person;
import org.drools.PersonInterface;
import org.drools.Precondition;
@@ -47,7 +45,7 @@
config );
}
- public void xxxtestDynamicRuleAdditions() throws Exception {
+ public void testDynamicRuleAdditions() throws Exception {
Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_Dynamic1.drl" ) );
PackageBuilder builder = new PackageBuilder();
@@ -142,7 +140,7 @@
}
- public void xxxtestDynamicRuleRemovals() throws Exception {
+ public void testDynamicRuleRemovals() throws Exception {
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_Dynamic1.drl" ) ) );
@@ -216,7 +214,7 @@
workingMemory.getAgenda().getActivations().length );
}
- public void xxxtestDynamicRuleRemovalsUnusedWorkingMemory() throws Exception {
+ public void testDynamicRuleRemovalsUnusedWorkingMemory() throws Exception {
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_Dynamic1.drl" ) ) );
@@ -256,7 +254,7 @@
}
}
- public void xxxtestDynamicFunction() throws Exception {
+ public void testDynamicFunction() throws Exception {
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_DynamicFunction1.drl" ) ) );
@@ -326,7 +324,7 @@
list.get( 2 ) );
}
- public void xxxtestRemovePackage() throws Exception {
+ public void testRemovePackage() throws Exception {
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_RemovePackage.drl" ) ) );
@@ -354,7 +352,7 @@
ruleBaseWM.addPackage( serialisePackage( builder1.getPackage() ) );
}
- public void xxxtestDynamicRules() throws Exception {
+ public void testDynamicRules() throws Exception {
final RuleBase ruleBase = getRuleBase();
final WorkingMemory workingMemory = ruleBase.newStatefulSession();
final Cheese a = new Cheese( "stilton",
@@ -375,7 +373,7 @@
workingMemory.fireAllRules();
}
- public void xxxtestDynamicRules2() throws Exception {
+ public void testDynamicRules2() throws Exception {
final RuleBase ruleBase = getRuleBase();
final WorkingMemory workingMemory = ruleBase.newStatefulSession();
@@ -397,7 +395,7 @@
workingMemory.fireAllRules();
}
- public void xxxtestRuleBaseAddRemove() throws Exception {
+ public void testRuleBaseAddRemove() throws Exception {
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
//add and remove
@@ -415,7 +413,7 @@
ruleBase.removePackage( pkg.getName() );
}
- public void xxxtestClassLoaderSwitchsUsingConf() throws Exception {
+ public void testClassLoaderSwitchsUsingConf() throws Exception {
try {
// Creates first class loader and use it to load fact classes
ClassLoader loader1 = new SubvertedClassLoader( new URL[]{getClass().getResource( "/" )},
@@ -460,7 +458,7 @@
}
- public void xxxtestClassLoaderSwitchsUsingContext() throws Exception {
+ public void testClassLoaderSwitchsUsingContext() throws Exception {
try {
// Creates first class loader and use it to load fact classes
ClassLoader original = Thread.currentThread().getContextClassLoader();
More information about the jboss-svn-commits
mailing list