@Test public void testAllRecipientsReturned() throws MessagingException { Mail mail = FakeMail.builder() .name("mail") .recipients(ANY_AT_JAMES, OTHER_AT_JAMES) .build(); assertThat(matcher.match(mail)).containsOnly(ANY_AT_JAMES, OTHER_AT_JAMES); }
@Override public Collection<MailAddress> match(Mail mail) { return mail.getRecipients(); }
All extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) { return mail.getRecipients(); } }
All extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) { return mail.getRecipients(); }  }
All extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) { return mail.getRecipients(); }  @Override Collection<MailAddress> match(Mail mail); }
All extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) { return mail.getRecipients(); }  @Override Collection<MailAddress> match(Mail mail);  }