@Test void initShouldNotThrowWhenInvalidPassThrough() throws Exception { MailetConfig mockedMailetConfig = mock(MailetConfig.class); when(mockedMailetConfig.getInitParameter("passThrough")).thenThrow(new RuntimeException()); when(mockedMailetConfig.getInitParameter("repositoryPath")).thenReturn(REPOSITORY_PATH); mailet.init(mockedMailetConfig); }
@Override public void init() throws MessagingException { repositoryPath = MailRepositoryUrl.from(getInitParameter("repositoryPath")); passThrough = getPassThroughParameter(); repository = selectRepository(); }
ToRepository extends GenericMailet { @Override public void init() throws MessagingException { repositoryPath = MailRepositoryUrl.from(getInitParameter("repositoryPath")); passThrough = getPassThroughParameter(); repository = selectRepository(); } }
ToRepository extends GenericMailet { @Override public void init() throws MessagingException { repositoryPath = MailRepositoryUrl.from(getInitParameter("repositoryPath")); passThrough = getPassThroughParameter(); repository = selectRepository(); } @Inject  ToRepository(MailRepositoryStore mailStore); }
ToRepository extends GenericMailet { @Override public void init() throws MessagingException { repositoryPath = MailRepositoryUrl.from(getInitParameter("repositoryPath")); passThrough = getPassThroughParameter(); repository = selectRepository(); } @Inject  ToRepository(MailRepositoryStore mailStore); @Override void init(); @Override void service(Mail mail); @Override String getMailetInfo(); }
ToRepository extends GenericMailet { @Override public void init() throws MessagingException { repositoryPath = MailRepositoryUrl.from(getInitParameter("repositoryPath")); passThrough = getPassThroughParameter(); repository = selectRepository(); } @Inject  ToRepository(MailRepositoryStore mailStore); @Override void init(); @Override void service(Mail mail); @Override String getMailetInfo();  }