@Test public void shouldInfoEmailThrowExceptionOnNullEmail() throws Exception { expectedException.expect(NullPointerException.class); emailLogRenderer.info(null); fail(); }
@Override public void info(@NonNull final String message, @NonNull final Email email, Object... messageParams) { if (logger.isInfoEnabled()) { logger.info(message, renderEmail(email), messageParams); } }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public void info(@NonNull final String message, @NonNull final Email email, Object... messageParams) { if (logger.isInfoEnabled()) { logger.info(message, renderEmail(email), messageParams); } } }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public void info(@NonNull final String message, @NonNull final Email email, Object... messageParams) { if (logger.isInfoEnabled()) { logger.info(message, renderEmail(email), messageParams); } } @Autowired  SanitizedEmailLogRenderer(final EmailRenderer emailRenderer); }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public void info(@NonNull final String message, @NonNull final Email email, Object... messageParams) { if (logger.isInfoEnabled()) { logger.info(message, renderEmail(email), messageParams); } } @Autowired  SanitizedEmailLogRenderer(final EmailRenderer emailRenderer); @Override EmailLogRenderer registerLogger(@NonNull final Logger logger); @Override void trace(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void trace(@NonNull final Email email); @Override void debug(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void debug(@NonNull final Email email); @Override void info(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void info(@NonNull final Email email); @Override void warn(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void warn(@NonNull final Email email); @Override void error(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void error(@NonNull final Email email); }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public void info(@NonNull final String message, @NonNull final Email email, Object... messageParams) { if (logger.isInfoEnabled()) { logger.info(message, renderEmail(email), messageParams); } } @Autowired  SanitizedEmailLogRenderer(final EmailRenderer emailRenderer); @Override EmailLogRenderer registerLogger(@NonNull final Logger logger); @Override void trace(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void trace(@NonNull final Email email); @Override void debug(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void debug(@NonNull final Email email); @Override void info(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void info(@NonNull final Email email); @Override void warn(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void warn(@NonNull final Email email); @Override void error(@NonNull final String message, @NonNull final Email email, Object... messageParams); @Override void error(@NonNull final Email email);  }