org.ploin.pmf.impl
Class MailReaderTest

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

public class MailReaderTest
extends java.lang.Object

Here are the testcases for the standardimplementation of the IMailReader 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/MailReaderTest.java $
$LastChangedBy: r.reiz $
$Revision: 48 $
$Date: 2009-11-18 01:06:13 +0100 (Wed, 18 Nov 2009) $


Constructor Summary
MailReaderTest()
           
 
Method Summary
 void findHtmlInDirectory()
          In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant and without locale.
We expect "regTemplateDirectory1".
 void findHtmlInDirectoryWithLocale()
          In this testcase we call the method "getHtmlMail" with an existing plain template in the directory, without mandant but with a locale.
We expect "regTemplateDirectory4".
 void findHtmlInDirectoryWithLocale3()
          In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant but with a wrong locale object.
We expect "regTemplateDirectory3".
 void findHtmlInDirectoryWithLocale4()
          In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant but with a locale object.
We expect "regTemplateDirectory3".
 void findHtmlInMandant()
          In this testcase we call the method "getHtmlMail" with an existing html template and a valid mandant.
 void findHtmlInMandantWithLocale()
          In this testcase we call the method "getHtmlMail" with an existing html template, an existing locale and a valid mandant.
 void findHtmlInRoot()
          In this testcase we call the method "getHtmlMail" with an existing html template in the root, without mandant and without a locale.
We expect "rootTemplateHtml".
 void findHtmlInRootWithLocale3()
          In this testcase we call the method "getHtmlMail" with an existing html template in the root, without mandant but with a wrong locale object.
We expect "rootTemplateHtml".
 void findNonExistingPlainInRoot()
          In this negative testcase we call the method "getPlainMail" with an non existing plain template, without mandant and without a locale.
We expect "rootTemplateTxt".
 void findPlainInDirectory()
          In this testcase we call the method "getPlainMail" with an existing plain template in the directory, without mandant and without locale.
We expect "regTemplateDirectory2".
 void findPlainInDirectoryWithLocale()
          In this testcase we call the method "getPlainMail" with an existing plain template in the directory, without mandant but with a locale.
We expect "regTemplateDirectory3".
 void findPlainInMandant()
          In this testcase we call the method "getPlainMail" with an existing plain template and a valid mandant.
 void findPlainInMandantWithLocale()
          In this testcase we call the method "getPlainMail" with an existing plain template, an existing locale and a valid mandant.
 void findPlainInRoot()
          In this testcase we call the method "getPlainMail" with an existing plain template in the root, without mandant and without a locale.
We expect "rootTemplateTxt".
 void getterAndSetterForDirectory()
          In this testcase we are testing the getter and setter for directory.
 void getterAndSetterForHtmlExtension()
          In this testcase we are testing the getter and setter for htmlExtension.
 void getterAndSetterForPlainExtension()
          In this testcase we are testing the getter and setter for plainExtension.
 void init()
          Here we setup our test scenario with the direcotry "businesslogic/mail"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailReaderTest

public MailReaderTest()
Method Detail

init

public void init()
Here we setup our test scenario with the direcotry "businesslogic/mail"


findHtmlInMandant

public void findHtmlInMandant()
In this testcase we call the method "getHtmlMail" with an existing html template and a valid mandant. We expect "regTemplate1".


findPlainInMandant

public void findPlainInMandant()
In this testcase we call the method "getPlainMail" with an existing plain template and a valid mandant. We expect "regTemplate1.txt".


findPlainInMandantWithLocale

public void findPlainInMandantWithLocale()
In this testcase we call the method "getPlainMail" with an existing plain template, an existing locale and a valid mandant.
We expect "regTemplate3Locale".


findHtmlInMandantWithLocale

public void findHtmlInMandantWithLocale()
In this testcase we call the method "getHtmlMail" with an existing html template, an existing locale and a valid mandant.
We expect "regTemplate3Locale".


findHtmlInDirectory

public void findHtmlInDirectory()
In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant and without locale.
We expect "regTemplateDirectory1".


findPlainInDirectory

public void findPlainInDirectory()
In this testcase we call the method "getPlainMail" with an existing plain template in the directory, without mandant and without locale.
We expect "regTemplateDirectory2".


findPlainInDirectoryWithLocale

public void findPlainInDirectoryWithLocale()
In this testcase we call the method "getPlainMail" with an existing plain template in the directory, without mandant but with a locale.
We expect "regTemplateDirectory3".


findHtmlInDirectoryWithLocale

public void findHtmlInDirectoryWithLocale()
In this testcase we call the method "getHtmlMail" with an existing plain template in the directory, without mandant but with a locale.
We expect "regTemplateDirectory4".


findHtmlInDirectoryWithLocale4

public void findHtmlInDirectoryWithLocale4()
In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant but with a locale object.
We expect "regTemplateDirectory3".


findHtmlInDirectoryWithLocale3

public void findHtmlInDirectoryWithLocale3()
In this testcase we call the method "getHtmlMail" with an existing html template in the directory, without mandant but with a wrong locale object.
We expect "regTemplateDirectory3".


findHtmlInRootWithLocale3

public void findHtmlInRootWithLocale3()
In this testcase we call the method "getHtmlMail" with an existing html template in the root, without mandant but with a wrong locale object.
We expect "rootTemplateHtml".


findHtmlInRoot

public void findHtmlInRoot()
In this testcase we call the method "getHtmlMail" with an existing html template in the root, without mandant and without a locale.
We expect "rootTemplateHtml".


findPlainInRoot

public void findPlainInRoot()
In this testcase we call the method "getPlainMail" with an existing plain template in the root, without mandant and without a locale.
We expect "rootTemplateTxt".


findNonExistingPlainInRoot

public void findNonExistingPlainInRoot()
In this negative testcase we call the method "getPlainMail" with an non existing plain template, without mandant and without a locale.
We expect "rootTemplateTxt".


getterAndSetterForDirectory

public void getterAndSetterForDirectory()
In this testcase we are testing the getter and setter for directory.


getterAndSetterForHtmlExtension

public void getterAndSetterForHtmlExtension()
In this testcase we are testing the getter and setter for htmlExtension.


getterAndSetterForPlainExtension

public void getterAndSetterForPlainExtension()
In this testcase we are testing the getter and setter for plainExtension.



Copyright © 2009 PLOIN GmbH. All Rights Reserved.