@Test public void testShouldSendMailToContactListMembers() throws AddressException, MessagingException { systemEmailer.sendEmail(recipientsContactLists, ObjectMother.AN_EXAMPLE_SUBJECT, ObjectMother.HELLOY_KITTY_THIS_IS_AN_EXAMPLE_BODY); verify(webappAndMailhelperMockSystemMailer, times(1)).send(any(MimeMessage.class), any(MailerResult.class)); caputureAndVerifyValuesForCreateMessage(recipientsContactLists, ObjectMother.AN_EXAMPLE_SUBJECT, ObjectMother.HELLOY_KITTY_THIS_IS_AN_EXAMPLE_BODY+ObjectMother.MAIL_TEMPLATE_FOOTER,null); }
public boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body) throws AddressException, MessagingException { return sendEmail(listOfContactLists, subject, body, null); }
Emailer { public boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body) throws AddressException, MessagingException { return sendEmail(listOfContactLists, subject, body, null); } }
Emailer { public boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body) throws AddressException, MessagingException { return sendEmail(listOfContactLists, subject, body, null); } Emailer(MailTemplate mailTemplate);   Emailer(MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper);  Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate);   Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper); }
Emailer { public boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body) throws AddressException, MessagingException { return sendEmail(listOfContactLists, subject, body, null); } Emailer(MailTemplate mailTemplate);   Emailer(MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper);  Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate);   Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper); boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body); boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body, List<File> attachments); boolean sendEmailCC(String cc, String subject, String body, List<File> attachments); boolean sendEmail(String mailto, String subject, String body); }
Emailer { public boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body) throws AddressException, MessagingException { return sendEmail(listOfContactLists, subject, body, null); } Emailer(MailTemplate mailTemplate);   Emailer(MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper);  Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate);   Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper); boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body); boolean sendEmail(List<ContactList> listOfContactLists, String subject, String body, List<File> attachments); boolean sendEmailCC(String cc, String subject, String body, List<File> attachments); boolean sendEmail(String mailto, String subject, String body);  }