*/
public void testNestedCompositeConstraints() {
final ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase();
final InternalWorkingMemory workingMemory = (InternalWorkingMemory) ruleBase.newStatefulSession();
final ClassFieldExtractor typeExtractor = cache.getExtractor( Cheese.class,
"type",
getClass().getClassLoader() );
final FieldValue cheddarField = FieldFactory.getFieldValue( "cheddar" );
final Evaluator stringEqual = ValueType.STRING_TYPE.getEvaluator( Operator.EQUAL );
// type == 'cheddar'
final LiteralConstraint constraint1 = new LiteralConstraint( typeExtractor,
stringEqual,
cheddarField );
final ClassFieldExtractor priceExtractor = cache.getExtractor( Cheese.class,
"price",
getClass().getClassLoader() );
final FieldValue field10 = FieldFactory.getFieldValue( 10 );