[jboss-svn-commits] JBL Code SVN: r19834 - labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu May 1 22:22:02 EDT 2008
Author: mark.proctor at jboss.com
Date: 2008-05-01 22:22:02 -0400 (Thu, 01 May 2008)
New Revision: 19834
Modified:
labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/ReteTest.java
Log:
-made failing unit test pass
Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/ReteTest.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/ReteTest.java 2008-05-02 00:16:57 UTC (rev 19833)
+++ labs/jbossrules/trunk/drools-core/src/test/java/org/drools/reteoo/ReteTest.java 2008-05-02 02:22:02 UTC (rev 19834)
@@ -131,6 +131,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -140,14 +141,15 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
- ClassObjectTypeConf conf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), ArrayList.class );
+ ClassObjectTypeConf conf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), new ArrayList() );
assertLength( 3,
conf.getObjectTypeNodes() );
- conf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), LinkedList.class );
+ conf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), new ArrayList() );
assertLength( 3,
conf.getObjectTypeNodes() );
@@ -181,6 +183,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -196,6 +199,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -243,12 +247,12 @@
assertEquals( 3,
rete.getObjectTypeNodes().size() );
- // double check that the Listreference is the same as the one we created, i.e. engine should try and recreate it
+ // double check that the List reference is the same as the one we created, i.e. engine should try and recreate it
assertSame( listOtn,
rete.getObjectTypeNodes( EntryPoint.DEFAULT ).get( new ClassObjectType( List.class ) ) );
// ArrayConf should match two ObjectTypenodes for List and ArrayList
- ClassObjectTypeConf arrayConf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), ArrayList.class );
+ ClassObjectTypeConf arrayConf = ( ClassObjectTypeConf ) workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( this.entryPoint.getEntryPoint(), new ArrayList() );
final ObjectTypeNode arrayOtn = arrayConf.getConcreteObjectTypeNode();
assertEquals( 2,
arrayConf.getObjectTypeNodes().length );
@@ -323,6 +327,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
assertLength( 0,
@@ -340,6 +345,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -347,6 +353,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -383,6 +390,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
@@ -430,6 +438,7 @@
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
+ null,
null ),
workingMemory );
More information about the jboss-svn-commits
mailing list