Class MockMailService

java.lang.Object
org.exoplatform.commons.testing.mock.MockMailService
All Implemented Interfaces:
org.exoplatform.services.mail.MailService

public class MockMailService extends Object implements org.exoplatform.services.mail.MailService
  • Constructor Details

    • MockMailService

      public MockMailService()
  • Method Details

    • getMailSession

      public javax.mail.Session getMailSession()
      Specified by:
      getMailSession in interface org.exoplatform.services.mail.MailService
    • getOutgoingMailServer

      public String getOutgoingMailServer()
      Specified by:
      getOutgoingMailServer in interface org.exoplatform.services.mail.MailService
    • sendMessage

      public void sendMessage(String from, String to, String subject, String body) throws Exception
      Specified by:
      sendMessage in interface org.exoplatform.services.mail.MailService
      Throws:
      Exception
    • sendMessage

      public void sendMessage(org.exoplatform.services.mail.Message message) throws Exception
      Specified by:
      sendMessage in interface org.exoplatform.services.mail.MailService
      Throws:
      Exception
    • sendMessage

      public void sendMessage(javax.mail.internet.MimeMessage message) throws Exception
      Specified by:
      sendMessage in interface org.exoplatform.services.mail.MailService
      Throws:
      Exception
    • sendMessageInFuture

      public Future<Boolean> sendMessageInFuture(String from, String to, String subject, String body)
      Specified by:
      sendMessageInFuture in interface org.exoplatform.services.mail.MailService
    • sendMessageInFuture

      public Future<Boolean> sendMessageInFuture(org.exoplatform.services.mail.Message message)
      Specified by:
      sendMessageInFuture in interface org.exoplatform.services.mail.MailService
    • sendMessageInFuture

      public Future<Boolean> sendMessageInFuture(javax.mail.internet.MimeMessage message)
      Specified by:
      sendMessageInFuture in interface org.exoplatform.services.mail.MailService