final String string = "String";
final DefaultFactHandle h1 = new DefaultFactHandle( 1,
string );
rete.assertObject( h1,
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
null,
null ),
workingMemory );
assertLength( 0,
sink1.getAsserted() );
assertLength( 0,
sink1.getRetracted() );
// There is a List ObjectTypeNode, make sure it was propagated
final List list = new ArrayList();
final DefaultFactHandle h2 = new DefaultFactHandle( 1,
list );
// need to assert first, to force it to build up the cache
rete.assertObject( h2,
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
null,
null ),
workingMemory );
rete.retractObject( h2,
new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
null,
null ),
workingMemory );