mocks
Class MockMailer

java.lang.Object
  extended by org.kuali.rice.kew.mail.Mailer
      extended by mocks.MockMailer

public class MockMailer
extends Mailer


Field Summary
 
Fields inherited from class org.kuali.rice.kew.mail.Mailer
LOG
 
Constructor Summary
MockMailer(Properties configProperties)
           
MockMailer(Properties configProperties, javax.mail.Authenticator authenticator)
           
MockMailer(Properties configProperties, String username, String password)
           
 
Method Summary
 javax.mail.Authenticator getAuthenticator()
           
 Properties getConfig()
           
 javax.mail.Session getCurrentSession()
           
 void sendMessage(String sender, javax.mail.Address[] recipients, String subject, String messageBody, javax.mail.Address[] ccRecipients, javax.mail.Address[] bccRecipients, boolean htmlMessage)
           
 void sendMessage(String sender, String recipient, String subject, String messageBody, boolean htmlMessage)
           
 void setConfig(Properties configProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMailer

public MockMailer(Properties configProperties)

MockMailer

public MockMailer(Properties configProperties,
                  javax.mail.Authenticator authenticator)

MockMailer

public MockMailer(Properties configProperties,
                  String username,
                  String password)
Method Detail

sendMessage

public void sendMessage(String sender,
                        javax.mail.Address[] recipients,
                        String subject,
                        String messageBody,
                        javax.mail.Address[] ccRecipients,
                        javax.mail.Address[] bccRecipients,
                        boolean htmlMessage)
                 throws javax.mail.internet.AddressException,
                        javax.mail.MessagingException
Overrides:
sendMessage in class Mailer
Throws:
javax.mail.internet.AddressException
javax.mail.MessagingException

sendMessage

public void sendMessage(String sender,
                        String recipient,
                        String subject,
                        String messageBody,
                        boolean htmlMessage)
                 throws javax.mail.internet.AddressException,
                        javax.mail.MessagingException
Overrides:
sendMessage in class Mailer
Throws:
javax.mail.internet.AddressException
javax.mail.MessagingException

getAuthenticator

public javax.mail.Authenticator getAuthenticator()
Overrides:
getAuthenticator in class Mailer

getConfig

public Properties getConfig()
Overrides:
getConfig in class Mailer

getCurrentSession

public javax.mail.Session getCurrentSession()
                                     throws javax.mail.NoSuchProviderException
Overrides:
getCurrentSession in class Mailer
Throws:
javax.mail.NoSuchProviderException

setConfig

public void setConfig(Properties configProperties)
Overrides:
setConfig in class Mailer


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.