assertNotNull( memory );
}
public void testMatches() {
ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase();
IdGenerator idGenerator = ruleBase.getReteooBuilder().getIdGenerator();
final Rete source = new Rete((InternalRuleBase) ruleBase);
ObjectTypeNode objectTypeNode = new ObjectTypeNode( idGenerator.getNextId(),
new ClassObjectType( String.class ),
source,
3 );
assertFalse( objectTypeNode.matches( new Object() ) );
assertFalse( objectTypeNode.matches( new Integer( 5 ) ) );
assertTrue( objectTypeNode.matches( "string" ) );
objectTypeNode = new ObjectTypeNode( idGenerator.getNextId(),
new ClassObjectType( Object.class ),
source,
3 );
assertTrue( objectTypeNode.matches( new Object() ) );