@Test public void write() { final Slf4jInfoWriter slf4jInfoWriter = new Slf4jInfoWriter(logger); assertNotNull(slf4jInfoWriter); final String logMessage = "Log message"; slf4jInfoWriter.write(logMessage.toCharArray(), 0, logMessage.length()); verify(logger).info(eq(logMessage)); }
@SuppressWarnings("squid:S2629") @Override public void write(final char[] cbuf, final int off, final int len) { if (cbuf != null && cbuf.length > 0) { logger.info(String.valueOf(cbuf)); } }
Slf4jInfoWriter extends Writer { @SuppressWarnings("squid:S2629") @Override public void write(final char[] cbuf, final int off, final int len) { if (cbuf != null && cbuf.length > 0) { logger.info(String.valueOf(cbuf)); } } }
Slf4jInfoWriter extends Writer { @SuppressWarnings("squid:S2629") @Override public void write(final char[] cbuf, final int off, final int len) { if (cbuf != null && cbuf.length > 0) { logger.info(String.valueOf(cbuf)); } } Slf4jInfoWriter(final org.slf4j.Logger logger); }
Slf4jInfoWriter extends Writer { @SuppressWarnings("squid:S2629") @Override public void write(final char[] cbuf, final int off, final int len) { if (cbuf != null && cbuf.length > 0) { logger.info(String.valueOf(cbuf)); } } Slf4jInfoWriter(final org.slf4j.Logger logger); @SuppressWarnings("squid:S2629") @Override void write(final char[] cbuf, final int off, final int len); @Override void flush(); @Override void close(); }
Slf4jInfoWriter extends Writer { @SuppressWarnings("squid:S2629") @Override public void write(final char[] cbuf, final int off, final int len) { if (cbuf != null && cbuf.length > 0) { logger.info(String.valueOf(cbuf)); } } Slf4jInfoWriter(final org.slf4j.Logger logger); @SuppressWarnings("squid:S2629") @Override void write(final char[] cbuf, final int off, final int len); @Override void flush(); @Override void close();  }