loggerAdaptor.close();
}
@Test
public void testKSessionLoggersFromGroupAndNested() throws Exception {
StatelessKieSession statelessKnowledgeSession = (StatelessKieSession) context.getBean( "k1" );
StatelessKnowledgeSessionImpl impl = (StatelessKnowledgeSessionImpl)statelessKnowledgeSession;
assertEquals(2, impl.workingMemoryEventSupport.getEventListeners().size());
List list = new ArrayList();
statelessKnowledgeSession.setGlobal("list", list);
assertNotNull(statelessKnowledgeSession.getGlobals().get("list"));
statelessKnowledgeSession.execute(new Person("Darth", "Cheddar", 50));
KnowledgeLoggerAdaptor adaptor = (KnowledgeLoggerAdaptor) context.getBean("k1_logger");
assertNotNull(adaptor);
assertNotNull(adaptor.getRuntimeLogger());
adaptor.close();