@Test void buildShouldWorkWhenEverythingProvided() { MailModifier.builder() .mailet(mock(RedirectNotify.class)) .mail(mock(MailImpl.class)) .dns(mock(DNSService.class)) .build(); }
public static Builder builder() { return new Builder(); }
MailModifier { public static Builder builder() { return new Builder(); } }
MailModifier { public static Builder builder() { return new Builder(); } private  MailModifier(RedirectNotify mailet, MailImpl mail, DNSService dns); }
MailModifier { public static Builder builder() { return new Builder(); } private  MailModifier(RedirectNotify mailet, MailImpl mail, DNSService dns); static Builder builder(); void setRemoteAddr(); void setRemoteHost(); void setRecipients(List<MailAddress> recipients); void setTo(List<MailAddress> mailAddresses); void setSubjectPrefix(Mail originalMail); void setReplyTo(Optional<MailAddress> optionalReplyTo); void setReversePath(Optional<MailAddress> maybeReversePath); void setIsReply(boolean isReply, Mail originalMail); void setSender(Optional<MailAddress> sender); void initializeDateIfNotPresent(); void setMessageId(String messageId); MailImpl getMail(); }
MailModifier { public static Builder builder() { return new Builder(); } private  MailModifier(RedirectNotify mailet, MailImpl mail, DNSService dns); static Builder builder(); void setRemoteAddr(); void setRemoteHost(); void setRecipients(List<MailAddress> recipients); void setTo(List<MailAddress> mailAddresses); void setSubjectPrefix(Mail originalMail); void setReplyTo(Optional<MailAddress> optionalReplyTo); void setReversePath(Optional<MailAddress> maybeReversePath); void setIsReply(boolean isReply, Mail originalMail); void setSender(Optional<MailAddress> sender); void initializeDateIfNotPresent(); void setMessageId(String messageId); MailImpl getMail();  }