@Test void testShouldAddOutputMapperWhenConfigured() throws ConfigurationException { Element root = new Element("root"); Element om = new Element("output-mapper"); om.setAttribute("class", "org.jpos.util.function.RemoveNewLinesMapper"); root.addContent(om); MappingLogEventWriter writer = new MappingLogEventWriter(); assertNull(writer.outputMappers); writer.setConfiguration(root); assertNotNull(writer.outputMappers); assertEquals(1, writer.outputMappers.size()); assertTrue(writer.outputMappers.get(0) instanceof RemoveNewLinesMapper); }
@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);  }