use of org.drools.kiesession.session.StatefulKnowledgeSessionImpl in project drools by kiegroup.
the class SegmentMemoryPrototypeTest method testSessionCache.
@Test
public void testSessionCache() {
KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("test", kieBaseTestConfiguration, DRL);
StatefulKnowledgeSessionImpl ksession = (StatefulKnowledgeSessionImpl) kbase.newKieSession();
try {
checkKieSession(ksession);
} finally {
try {
ksession.reset();
checkKieSession(ksession);
} finally {
ksession.dispose();
}
}
}
Aggregations