@Test public void shouldRegisterLoggerReturnThis() throws Exception { EmailLogRenderer givenEmailLogRendered = emailLogRenderer.registerLogger(customLogger); assertions.assertThat(givenEmailLogRendered).isEqualTo(emailLogRenderer); }
@Override public EmailLogRenderer registerLogger(@NonNull final Logger logger) { this.logger = logger; return this; }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public EmailLogRenderer registerLogger(@NonNull final Logger logger) { this.logger = logger; return this; } }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public EmailLogRenderer registerLogger(@NonNull final Logger logger) { this.logger = logger; return this; } @Autowired  SanitizedEmailLogRenderer(final EmailRenderer emailRenderer); }
SanitizedEmailLogRenderer implements EmailLogRenderer { @Override public EmailLogRenderer registerLogger(@NonNull final Logger logger) { this.logger = logger; return this; } @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 EmailLogRenderer registerLogger(@NonNull final Logger logger) { this.logger = logger; return this; } @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);  }