@Test public void shouldQueueMessage() throws Exception { SimpleMailMessage message = new SimpleMailMessage(); message.setTo("test@gmail.com"); message.setSubject("the subject"); message.setText("The main message."); repository.queueMessage(message); verify(mapper).insert(anyString(), anyString(), anyString(), anyBoolean()); }
@Deprecated public void queueMessage(SimpleMailMessage message) { mapper.insert(message.getTo()[0], message.getText(), message.getSubject(), false); }
EmailNotificationRepository { @Deprecated public void queueMessage(SimpleMailMessage message) { mapper.insert(message.getTo()[0], message.getText(), message.getSubject(), false); } }
EmailNotificationRepository { @Deprecated public void queueMessage(SimpleMailMessage message) { mapper.insert(message.getTo()[0], message.getText(), message.getSubject(), false); }  }
EmailNotificationRepository { @Deprecated public void queueMessage(SimpleMailMessage message) { mapper.insert(message.getTo()[0], message.getText(), message.getSubject(), false); }  @Deprecated void queueMessage(SimpleMailMessage message); @Deprecated void queueMessage(String to, String message, String subject, Boolean isHtml); EmailMessage queueEmailMessage(EmailMessage message); EmailAttachment insertEmailAttachment(EmailAttachment attachment); List<EmailAttachment> getEmailAttachmentsByEmailId(Long id); }
EmailNotificationRepository { @Deprecated public void queueMessage(SimpleMailMessage message) { mapper.insert(message.getTo()[0], message.getText(), message.getSubject(), false); }  @Deprecated void queueMessage(SimpleMailMessage message); @Deprecated void queueMessage(String to, String message, String subject, Boolean isHtml); EmailMessage queueEmailMessage(EmailMessage message); EmailAttachment insertEmailAttachment(EmailAttachment attachment); List<EmailAttachment> getEmailAttachmentsByEmailId(Long id);  }