@Test void getMailStatusResult() { this.compositeListener.getMailStatusResult(); verify(this.mainListener).getMailStatusResult(); verifyNoInteractions(this.listener1); verifyNoInteractions(this.listener2); }
@Override public MailStatusResult getMailStatusResult() { return this.mainListener.getMailStatusResult(); }
CompositeMailListener implements MailListener { @Override public MailStatusResult getMailStatusResult() { return this.mainListener.getMailStatusResult(); } }
CompositeMailListener implements MailListener { @Override public MailStatusResult getMailStatusResult() { return this.mainListener.getMailStatusResult(); } CompositeMailListener(MailListener mainListener, MailListener... listeners); }
CompositeMailListener implements MailListener { @Override public MailStatusResult getMailStatusResult() { return this.mainListener.getMailStatusResult(); } CompositeMailListener(MailListener mainListener, MailListener... listeners); @Override void onPrepareBegin(String batchId, Map<String, Object> parameters); @Override void onPrepareMessageSuccess(ExtendedMimeMessage message, Map<String, Object> parameters); @Override void onPrepareMessageError(ExtendedMimeMessage message, Exception e, Map<String, Object> parameters); @Override void onPrepareFatalError(Exception exception, Map<String, Object> parameters); @Override void onPrepareEnd(Map<String, Object> parameters); @Override void onSendMessageSuccess(ExtendedMimeMessage message, Map<String, Object> parameters); @Override void onSendMessageError(ExtendedMimeMessage message, Exception exception, Map<String, Object> parameters); @Override void onSendMessageFatalError(String uniqueMessageId, Exception exception, Map<String, Object> parameters); @Override MailStatusResult getMailStatusResult(); }
CompositeMailListener implements MailListener { @Override public MailStatusResult getMailStatusResult() { return this.mainListener.getMailStatusResult(); } CompositeMailListener(MailListener mainListener, MailListener... listeners); @Override void onPrepareBegin(String batchId, Map<String, Object> parameters); @Override void onPrepareMessageSuccess(ExtendedMimeMessage message, Map<String, Object> parameters); @Override void onPrepareMessageError(ExtendedMimeMessage message, Exception e, Map<String, Object> parameters); @Override void onPrepareFatalError(Exception exception, Map<String, Object> parameters); @Override void onPrepareEnd(Map<String, Object> parameters); @Override void onSendMessageSuccess(ExtendedMimeMessage message, Map<String, Object> parameters); @Override void onSendMessageError(ExtendedMimeMessage message, Exception exception, Map<String, Object> parameters); @Override void onSendMessageFatalError(String uniqueMessageId, Exception exception, Map<String, Object> parameters); @Override MailStatusResult getMailStatusResult();  }