@Test public void matchShouldNotReturnNonExistingAddress() throws Exception { when(mailetContext.localRecipients(any())).thenReturn(ImmutableList.of()); assertThat(testee.match(mail)).isEmpty(); }
@Override public Collection<MailAddress> match(Mail mail) throws MessagingException { return getMailetContext().localRecipients(mail.getRecipients()); }
RecipientIsLocal extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) throws MessagingException { return getMailetContext().localRecipients(mail.getRecipients()); } }
RecipientIsLocal extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) throws MessagingException { return getMailetContext().localRecipients(mail.getRecipients()); }  }
RecipientIsLocal extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) throws MessagingException { return getMailetContext().localRecipients(mail.getRecipients()); }  @Override Collection<MailAddress> match(Mail mail); }
RecipientIsLocal extends GenericMatcher { @Override public Collection<MailAddress> match(Mail mail) throws MessagingException { return getMailetContext().localRecipients(mail.getRecipients()); }  @Override Collection<MailAddress> match(Mail mail);  }