@Test void testShouldAddEventMapperWhenConfigured() throws ConfigurationException { Element root = new Element("root"); Element em = new Element("event-mapper"); em.setAttribute("class", "org.jpos.util.function.TestLogEventMapper"); root.addContent(em); MappingLogEventWriter writer = new MappingLogEventWriter(); assertNull(writer.eventMappers); writer.setConfiguration(root); assertNotNull(writer.eventMappers); assertEquals(1, writer.eventMappers.size()); assertTrue(writer.eventMappers.get(0) instanceof TestLogEventMapper); }
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent ev); @Override void setConfiguration(Element e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent ev); @Override void setConfiguration(Element e);  }