DefaultAutoCloseableSlf4jLogger implements AutoCloseableSlf4jLogger { public static DefaultAutoCloseableSlf4jLogger of(final Logger logger) { return new DefaultAutoCloseableSlf4jLogger(checkNotNull(logger, "logger")); } private  DefaultAutoCloseableSlf4jLogger(final Logger actualSlf4jLogger); static DefaultAutoCloseableSlf4jLogger of(final Logger logger); @Override String getName(); @Override boolean isTraceEnabled(); @Override void trace(final String msg); @Override void trace(final String format, final Object arg); @Override void trace(final String format, final Object arg1, final Object arg2); @Override void trace(final String format, final Object... arguments); @Override void trace(final String msg, final Throwable t); @Override boolean isTraceEnabled(final Marker marker); @Override void trace(final Marker marker, final String msg); @Override void trace(final Marker marker, final String format, final Object arg); @Override void trace(final Marker marker, final String format, final Object arg1, final Object arg2); @Override void trace(final Marker marker, final String format, final Object... argArray); @Override void trace(final Marker marker, final String msg, final Throwable t); @Override boolean isDebugEnabled(); @Override void debug(final String msg); @Override void debug(final String format, final Object arg); @Override void debug(final String format, final Object arg1, final Object arg2); @Override void debug(final String format, final Object... arguments); @Override void debug(final String msg, final Throwable t); @Override boolean isDebugEnabled(final Marker marker); @Override void debug(final Marker marker, final String msg); @Override void debug(final Marker marker, final String format, final Object arg); @Override void debug(final Marker marker, final String format, final Object arg1, final Object arg2); @Override void debug(final Marker marker, final String format, final Object... arguments); @Override void debug(final Marker marker, final String msg, final Throwable t); @Override boolean isInfoEnabled(); @Override void info(final String msg); @Override void info(final String format, final Object arg); @Override void info(final String format, final Object arg1, final Object arg2); @Override void info(final String format, final Object... arguments); @Override void info(final String msg, final Throwable t); @Override boolean isInfoEnabled(final Marker marker); @Override void info(final Marker marker, final String msg); @Override void info(final Marker marker, final String format, final Object arg); @Override void info(final Marker marker, final String format, final Object arg1, final Object arg2); @Override void info(final Marker marker, final String format, final Object... arguments); @Override void info(final Marker marker, final String msg, final Throwable t); @Override boolean isWarnEnabled(); @Override void warn(final String msg); @Override void warn(final String format, final Object arg); @Override void warn(final String format, final Object... arguments); @Override void warn(final String format, final Object arg1, final Object arg2); @Override void warn(final String msg, final Throwable t); @Override boolean isWarnEnabled(final Marker marker); @Override void warn(final Marker marker, final String msg); @Override void warn(final Marker marker, final String format, final Object arg); @Override void warn(final Marker marker, final String format, final Object arg1, final Object arg2); @Override void warn(final Marker marker, final String format, final Object... arguments); @Override void warn(final Marker marker, final String msg, final Throwable t); @Override boolean isErrorEnabled(); @Override void error(final String msg); @Override void error(final String format, final Object arg); @Override void error(final String format, final Object arg1, final Object arg2); @Override void error(final String format, final Object... arguments); @Override void error(final String msg, final Throwable t); @Override boolean isErrorEnabled(final Marker marker); @Override void error(final Marker marker, final String msg); @Override void error(final Marker marker, final String format, final Object arg); @Override void error(final Marker marker, final String format, final Object arg1, final Object arg2); @Override void error(final Marker marker, final String format, final Object... arguments); @Override void error(final Marker marker, final String msg, final Throwable t); @Override DefaultAutoCloseableSlf4jLogger setCorrelationId(@Nullable final CharSequence correlationId); @Override void discardCorrelationId(); @Override DefaultAutoCloseableSlf4jLogger putMdcEntry(final CharSequence key, @Nullable final CharSequence value); @Override DefaultAutoCloseableSlf4jLogger removeMdcEntry(final CharSequence key); @Override void close();  }
@Test public void getInstanceWithNullLogger() { assertThatNullPointerException() .isThrownBy(() -> DefaultAutoCloseableSlf4jLogger.of(null)) .withMessage("The logger must not be null!") .withNoCause(); }