Cheese cheddar0 = new Cheese( "cheddar",
5 );
FactHandle f0 = workingMemory.createFactHandle( 0 );
workingMemory.putObject( f0,
cheddar0 );
InstrumentedReteTuple tuple = new InstrumentedReteTuple( 0,
f0,
workingMemory );
Cheese cheddar1 = new Cheese( "cheddar",
5 );
FactHandle f1 = workingMemory.createFactHandle( 1 );
workingMemory.putObject( f1,
cheddar1 );
tuple = new InstrumentedReteTuple( tuple,
new InstrumentedReteTuple( 1,
f1,
workingMemory ) );
assertTrue( constraint1.isAllowed( cheddar1,
f1,