@Test public void sendMailSyncWithIcalTest() { when(mailSessionLocalSettingsConfigModel.isEmailEnabled()).thenReturn(true); when(mailSessionLocalSettingsConfigModel.getStandardEmailSender()).thenReturn("sender@test.de"); when(configurationService.createMailSessionLocalSettingsConfigModel()).thenReturn(mailSessionLocalSettingsConfigModel); when(configurationService.getSendMailConfiguration()).thenReturn(sendMailConfiguration); when(sendMailConfiguration.getCharset()).thenReturn("UTF-8"); final Mail message = new Mail(); final PFUserDO toUser = new PFUserDO(); toUser.setEmail("devnull@test.de"); message.setTo(toUser); message.setContent(""); final String icalContent = "ABC"; final Collection<? extends MailAttachment> attachments = null; sendMail.send(message, icalContent, attachments, false); }
public boolean send(final Mail composedMessage) { return send(composedMessage, null, null, true); }
SendMail { public boolean send(final Mail composedMessage) { return send(composedMessage, null, null, true); } }
SendMail { public boolean send(final Mail composedMessage) { return send(composedMessage, null, null, true); }  }
SendMail { public boolean send(final Mail composedMessage) { return send(composedMessage, null, null, true); }  static String getProjectForgeSubject(final String subject); boolean send(final Mail composedMessage); boolean send(final Mail composedMessage,
                      final Collection<? extends MailAttachment> attachments); boolean send(final Mail composedMessage, final String icalContent,
                      final Collection<? extends MailAttachment> attachments); boolean send(final Mail composedMessage, final String icalContent,
                      final Collection<? extends MailAttachment> attachments, boolean async); String renderGroovyTemplate(final Mail composedMessage, final String groovyTemplate,
                                     final Map<String, Object> data,
                                     final String title,
                                     final PFUserDO recipient); String buildUrl(String subPath); static void internalSetTestMode(); }
SendMail { public boolean send(final Mail composedMessage) { return send(composedMessage, null, null, true); }  static String getProjectForgeSubject(final String subject); boolean send(final Mail composedMessage); boolean send(final Mail composedMessage,
                      final Collection<? extends MailAttachment> attachments); boolean send(final Mail composedMessage, final String icalContent,
                      final Collection<? extends MailAttachment> attachments); boolean send(final Mail composedMessage, final String icalContent,
                      final Collection<? extends MailAttachment> attachments, boolean async); String renderGroovyTemplate(final Mail composedMessage, final String groovyTemplate,
                                     final Map<String, Object> data,
                                     final String title,
                                     final PFUserDO recipient); String buildUrl(String subPath); static void internalSetTestMode();  }