DefaultDiagnosticLoggingAdapter extends AbstractDiagnosticLoggingAdapter { public static DefaultDiagnosticLoggingAdapter of(final DiagnosticLoggingAdapter loggingAdapter, final CharSequence loggerName) { return new DefaultDiagnosticLoggingAdapter(loggingAdapter, loggerName); } private  DefaultDiagnosticLoggingAdapter(final DiagnosticLoggingAdapter loggingAdapter,
            final CharSequence loggerName); static DefaultDiagnosticLoggingAdapter of(final DiagnosticLoggingAdapter loggingAdapter,
            final CharSequence loggerName); @Override boolean isErrorEnabled(); @Override boolean isWarningEnabled(); @Override boolean isInfoEnabled(); @Override boolean isDebugEnabled(); @Override void notifyError(final String message); @Override void notifyError(final Throwable cause, final String message); @Override void notifyWarning(final String message); @Override void notifyInfo(final String message); @Override void notifyDebug(final String message); @Override scala.collection.immutable.Map<String, Object> mdc(); @Override void mdc(final scala.collection.immutable.Map<String, Object> mdc); @Override Map<String, Object> getMDC(); @Override void setMDC(final Map<String, Object> jMdc); @Override void clearMDC(); @Override DefaultDiagnosticLoggingAdapter putMdcEntry(final CharSequence key, @Nullable final CharSequence value); @Override DefaultDiagnosticLoggingAdapter removeMdcEntry(final CharSequence key); @Override DefaultDiagnosticLoggingAdapter discardMdcEntries(); @Override String getName();  }
@Test public void getInstanceWithNullLogger() { assertThatNullPointerException() .isThrownBy(() -> DefaultDiagnosticLoggingAdapter.of(null, LOGGER_NAME)) .withMessage("The loggingAdapter must not be null!") .withNoCause(); }
@Test public void getInstanceWithNullLoggerName() { assertThatNullPointerException() .isThrownBy(() -> DefaultDiagnosticLoggingAdapter.of(plainLoggingAdapter, null)) .withMessage("The loggerName must not be null!") .withNoCause(); }
@Test public void getInstanceWithBlankLoggerName() { assertThatIllegalArgumentException() .isThrownBy(() -> DefaultDiagnosticLoggingAdapter.of(plainLoggingAdapter, "")) .withMessage("The argument 'loggerName' must not be empty!") .withNoCause(); }