@Test void initShouldNotThrowWhenEveryParameters() throws Exception { FakeMailetConfig mailetConfig = FakeMailetConfig.builder() .mailetName(MAILET_NAME) .mailetContext(fakeMailContext) .setProperty("debug", "true") .setProperty("passThrough", "false") .setProperty("fakeDomainCheck", "false") .setProperty("inline", "true") .setProperty("attachment", "true") .setProperty("message", "mess") .setProperty("recipients", "user@james.org, user2@james.org") .setProperty("to", "to@james.org") .setProperty("replyTo", "replyTo@james.org") .setProperty("replyto", "replyto@james.org") .setProperty("reversePath", "reverse@james.org") .setProperty("sender", "sender@james.org") .setProperty("subject", "subj") .setProperty("prefix", "pref") .setProperty("attachError", "true") .setProperty("isReply", "true") .build(); resend.init(mailetConfig); }
@Override public void init() throws MessagingException { if (getInitParameters().isDebug()) { LOGGER.debug("Initializing"); } checkInitParameters(getAllowedInitParameters()); if (getInitParameters().isStatic()) { if (getInitParameters().isDebug()) { LOGGER.debug(getInitParameters().asString()); } } }
Resend extends GenericMailet implements RedirectNotify { @Override public void init() throws MessagingException { if (getInitParameters().isDebug()) { LOGGER.debug("Initializing"); } checkInitParameters(getAllowedInitParameters()); if (getInitParameters().isStatic()) { if (getInitParameters().isDebug()) { LOGGER.debug(getInitParameters().asString()); } } } }
Resend extends GenericMailet implements RedirectNotify { @Override public void init() throws MessagingException { if (getInitParameters().isDebug()) { LOGGER.debug("Initializing"); } checkInitParameters(getAllowedInitParameters()); if (getInitParameters().isStatic()) { if (getInitParameters().isDebug()) { LOGGER.debug(getInitParameters().asString()); } } } @Inject  Resend(DNSService dns); }
Resend extends GenericMailet implements RedirectNotify { @Override public void init() throws MessagingException { if (getInitParameters().isDebug()) { LOGGER.debug("Initializing"); } checkInitParameters(getAllowedInitParameters()); if (getInitParameters().isStatic()) { if (getInitParameters().isDebug()) { LOGGER.debug(getInitParameters().asString()); } } } @Inject  Resend(DNSService dns); @Override String getMailetInfo(); @Override InitParameters getInitParameters(); @Override Set<String> getAllowedInitParameters(); @Override DNSService getDNSService(); @Override void init(); @Override String getMessage(Mail originalMail); @Override List<InternetAddress> getTo(); @Override List<MailAddress> getTo(Mail originalMail); @Override Optional<MailAddress> getReplyTo(); @Override Optional<MailAddress> getReplyTo(Mail originalMail); @Override List<MailAddress> getRecipients(); @Override List<MailAddress> getRecipients(Mail originalMail); @Override Optional<MailAddress> getReversePath(); @Override Optional<MailAddress> getReversePath(Mail originalMail); @Override Optional<MailAddress> getSender(); @Override Optional<MailAddress> getSender(Mail originalMail); @Override Optional<String> getSubjectPrefix(Mail newMail, String subjectPrefix, Mail originalMail); @Override MimeMessageModifier getMimeMessageModifier(Mail newMail, Mail originalMail); @Override void service(Mail originalMail); }
Resend extends GenericMailet implements RedirectNotify { @Override public void init() throws MessagingException { if (getInitParameters().isDebug()) { LOGGER.debug("Initializing"); } checkInitParameters(getAllowedInitParameters()); if (getInitParameters().isStatic()) { if (getInitParameters().isDebug()) { LOGGER.debug(getInitParameters().asString()); } } } @Inject  Resend(DNSService dns); @Override String getMailetInfo(); @Override InitParameters getInitParameters(); @Override Set<String> getAllowedInitParameters(); @Override DNSService getDNSService(); @Override void init(); @Override String getMessage(Mail originalMail); @Override List<InternetAddress> getTo(); @Override List<MailAddress> getTo(Mail originalMail); @Override Optional<MailAddress> getReplyTo(); @Override Optional<MailAddress> getReplyTo(Mail originalMail); @Override List<MailAddress> getRecipients(); @Override List<MailAddress> getRecipients(Mail originalMail); @Override Optional<MailAddress> getReversePath(); @Override Optional<MailAddress> getReversePath(Mail originalMail); @Override Optional<MailAddress> getSender(); @Override Optional<MailAddress> getSender(Mail originalMail); @Override Optional<String> getSubjectPrefix(Mail newMail, String subjectPrefix, Mail originalMail); @Override MimeMessageModifier getMimeMessageModifier(Mail newMail, Mail originalMail); @Override void service(Mail originalMail);  }