KieSession statefulSession = (KieSession) context.getBean( "ConsoleLogger-statefulSession" );
StatefulKnowledgeSessionImpl impl = (StatefulKnowledgeSessionImpl)statefulSession;
for ( Object listener : impl.session.getWorkingMemoryEventListeners()) {
assertTrue(listener instanceof WorkingMemoryConsoleLogger);
}
statefulSession.dispose();
}
@Test
public void testStatefulKnowledgeFileLogger() throws Exception {
KieSession statefulSession = (KieSession) context.getBean( "FileLogger-statefulSession" );