org.ploin.pmf.impl
Class MailFactoryTest

java.lang.Object
  extended by org.ploin.pmf.impl.MailFactoryTest

public class MailFactoryTest
extends java.lang.Object

Here are the testcases for the standardimplementation of the IMailFactory interface.

                                    ........
                                 .WHHUUVOOOOU&,
     dMMMMMMMMMMMa,   .MMMMF   .MHW0Oz+!``````?G.   .MMMM% .MMMMMMMMMMMN,
    .MMMMMMMMMMMMMMr  JMMMM   JHHXwOz;:^..```  `O,  JMMM#  dMMMMMMMMMMMMN
    JMMM#     ,MMMMF  MMMMF  .MHVXwOz++.^.````  +n .MMMM$ .MMMMt    dMMM#
   .MMMMt     .MMMMt .MMMM!  JMHWWXwOz++....  `.+X JMMMM  JMMMM    .MMMM%
   JMMM#     .MMMM@  dMMM#   ,MHHWWXwOzz+++....?df MMMMF .MMMMF    JMMM#
  .MMMMNNNNNMMMMMD   MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM`   .MMMM$
  .MMMMMMMMMMMM"`    .YMMMMMF  TMHHHWWWXXXwwwwXK! MMMMF  MMMMF    JMMMM
  MMMMF                          TMMHHHHHWWWHY^
 .MMMM'                             `7""""^`
 dMMM#
 

$HeadURL: https://ploinscm.de/svn/ploinMailFactory/trunk/src/test/java/org/ploin/pmf/impl/MailFactoryTest.java $
$LastChangedBy: r.reiz $
$Revision: 66 $
$Date: 2009-12-08 12:03:04 +0100 (Tue, 08 Dec 2009) $


Constructor Summary
MailFactoryTest()
           
 
Method Summary
 void getHtmlMessage()
          In this testcase we fetch the htmlTemplate filled with the variables from the map.
 void getHtmlMessage2()
          In this testcase we call the method with a wrong parameter.
 void getHtmlMessage3()
          In this testcase we call the method with a wrong parameter.
 void getHtmlMessage4()
          In this testcase we call the method with a wrong parameter.
 void getPlainMessage()
          In this testcase we fetch the plainTemplate filled with the variables from the map.
 void getPlainMessage1()
          In this testcase we call the method with a wrong parameter.
 void getPlainMessage2()
          In this testcase we call the method with a wrong parameter.
 void getPlainMessage3()
          In this testcase we call the method with a wrong parameter.
 void getterAndSetterForDirectory()
          In this testcase we test the getter and setter for the directroy
 void getterAndSetterForHtmlExtension()
          In this testcase we test the getter and setter for the html extension
 void getterAndSetterForMailReader()
          In this testcase we test the getter and setter for the IMailReader
 void getterAndSetterForMailReplacer()
          In this testcase we test the getter and setter for the IMailReplacer
 void getterAndSetterForMailSender()
          In this testcase we test the getter and setter for the IMailSender
 void getterAndSetterForPlainExtension()
          In this testcase we test the getter and setter for the plain extension
 void getterAndSetterForPropertiesLoader()
          In this testcase we test the getter and setter for the IPropertiesLoader
 void getterAndSetterForSingleThread()
          In this testcase we test the getter and setter for the varialbe "singleThread"
 void init()
          Before we start the tests, we set up the map.
 void sendMail()
          Here we test to send a mail.
 void sendMail1()
          Here we test to send a mail.
 void sendMail2()
          Here we test to send a mail, with two threads.
 void sendMail3()
          Here we test to send a mail, with two threads and through a fallback server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailFactoryTest

public MailFactoryTest()
Method Detail

init

public void init()
Before we start the tests, we set up the map.


sendMail

public void sendMail()
Here we test to send a mail. In the properties file we have set the toEmailOverride an toNameOverride.


sendMail1

public void sendMail1()
Here we test to send a mail.


sendMail2

public void sendMail2()
Here we test to send a mail, with two threads.


sendMail3

public void sendMail3()
Here we test to send a mail, with two threads and through a fallback server.


getterAndSetterForDirectory

public void getterAndSetterForDirectory()
In this testcase we test the getter and setter for the directroy


getterAndSetterForHtmlExtension

public void getterAndSetterForHtmlExtension()
In this testcase we test the getter and setter for the html extension


getterAndSetterForPlainExtension

public void getterAndSetterForPlainExtension()
In this testcase we test the getter and setter for the plain extension


getterAndSetterForMailReader

public void getterAndSetterForMailReader()
In this testcase we test the getter and setter for the IMailReader


getterAndSetterForMailReplacer

public void getterAndSetterForMailReplacer()
In this testcase we test the getter and setter for the IMailReplacer


getterAndSetterForMailSender

public void getterAndSetterForMailSender()
In this testcase we test the getter and setter for the IMailSender


getterAndSetterForPropertiesLoader

public void getterAndSetterForPropertiesLoader()
In this testcase we test the getter and setter for the IPropertiesLoader


getterAndSetterForSingleThread

public void getterAndSetterForSingleThread()
In this testcase we test the getter and setter for the varialbe "singleThread"


getPlainMessage

public void getPlainMessage()
In this testcase we fetch the plainTemplate filled with the variables from the map. We expect not null and "regTemplate1.txt".


getPlainMessage1

public void getPlainMessage1()
In this testcase we call the method with a wrong parameter. We expect null


getPlainMessage2

public void getPlainMessage2()
In this testcase we call the method with a wrong parameter. We expect null


getPlainMessage3

public void getPlainMessage3()
In this testcase we call the method with a wrong parameter. We expect null


getHtmlMessage

public void getHtmlMessage()
In this testcase we fetch the htmlTemplate filled with the variables from the map. We expect not null and "regTemplate1".


getHtmlMessage2

public void getHtmlMessage2()
In this testcase we call the method with a wrong parameter. We expect null


getHtmlMessage3

public void getHtmlMessage3()
In this testcase we call the method with a wrong parameter. We expect null


getHtmlMessage4

public void getHtmlMessage4()
In this testcase we call the method with a wrong parameter. We expect null



Copyright © 2009 PLOIN GmbH. All Rights Reserved.