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 Summary
Constructors Constructor Description MockMailService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.SessiongetMailSession()StringgetOutgoingMailServer()voidsendMessage(String from, String to, String subject, String body)voidsendMessage(javax.mail.internet.MimeMessage message)voidsendMessage(org.exoplatform.services.mail.Message message)Future<Boolean>sendMessageInFuture(String from, String to, String subject, String body)Future<Boolean>sendMessageInFuture(javax.mail.internet.MimeMessage message)Future<Boolean>sendMessageInFuture(org.exoplatform.services.mail.Message message)
-
-
-
Method Detail
-
getMailSession
public javax.mail.Session getMailSession()
- Specified by:
getMailSessionin interfaceorg.exoplatform.services.mail.MailService
-
getOutgoingMailServer
public String getOutgoingMailServer()
- Specified by:
getOutgoingMailServerin interfaceorg.exoplatform.services.mail.MailService
-
sendMessage
public void sendMessage(String from, String to, String subject, String body) throws Exception
- Specified by:
sendMessagein interfaceorg.exoplatform.services.mail.MailService- Throws:
Exception
-
sendMessage
public void sendMessage(org.exoplatform.services.mail.Message message) throws Exception- Specified by:
sendMessagein interfaceorg.exoplatform.services.mail.MailService- Throws:
Exception
-
sendMessage
public void sendMessage(javax.mail.internet.MimeMessage message) throws Exception- Specified by:
sendMessagein interfaceorg.exoplatform.services.mail.MailService- Throws:
Exception
-
sendMessageInFuture
public Future<Boolean> sendMessageInFuture(String from, String to, String subject, String body)
- Specified by:
sendMessageInFuturein interfaceorg.exoplatform.services.mail.MailService
-
sendMessageInFuture
public Future<Boolean> sendMessageInFuture(org.exoplatform.services.mail.Message message)
- Specified by:
sendMessageInFuturein interfaceorg.exoplatform.services.mail.MailService
-
-