@Test public void serviceShouldHaveNoEffectWhenNoRecipient() throws Exception { FakeMail fakeMail = FakeMail.builder() .name("mail") .build(); testee.service(fakeMail); assertThat(fakeMail.getRecipients()) .isEmpty(); }
@Override public void service(Mail mail) throws MessagingException { mail.setRecipients(mail.getRecipients().stream() .map(Throwing.function(this::toLowerCase)) .collect(Guavate.toImmutableList())); }
RecipientToLowerCase extends GenericMailet { @Override public void service(Mail mail) throws MessagingException { mail.setRecipients(mail.getRecipients().stream() .map(Throwing.function(this::toLowerCase)) .collect(Guavate.toImmutableList())); } }
RecipientToLowerCase extends GenericMailet { @Override public void service(Mail mail) throws MessagingException { mail.setRecipients(mail.getRecipients().stream() .map(Throwing.function(this::toLowerCase)) .collect(Guavate.toImmutableList())); }  }
RecipientToLowerCase extends GenericMailet { @Override public void service(Mail mail) throws MessagingException { mail.setRecipients(mail.getRecipients().stream() .map(Throwing.function(this::toLowerCase)) .collect(Guavate.toImmutableList())); }  @Override void service(Mail mail); }
RecipientToLowerCase extends GenericMailet { @Override public void service(Mail mail) throws MessagingException { mail.setRecipients(mail.getRecipients().stream() .map(Throwing.function(this::toLowerCase)) .collect(Guavate.toImmutableList())); }  @Override void service(Mail mail);  }