149150151152153154155156157158159
ksession.dispose(); ksession = createKnowledgeSession(kbase); for ( int i = 0; i < NUM_FACTS; i++ ) { ksession.insert( new Foo( i ) ); ksession.insert( new Bar( i ) ); } ksession.fireAllRules(); assertEquals(NUM_FACTS, counter); }
150151152153154155156157158159160
ksession.dispose(); ksession = createKnowledgeSession(kbase); for ( int i = 0; i < NUM_FACTS; i++ ) { ksession.insert( new Foo( i ) ); ksession.insert( new Bar( i ) ); } ksession.fireAllRules(); assertEquals(startCounter + NUM_FACTS, counter); }