org.ploin.pmf.impl
Class PropertiesLoaderTest

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

public class PropertiesLoaderTest
extends java.lang.Object

Here are the testcases for the standardimplementation of the IPropertiesLoader 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/PropertiesLoaderTest.java $
$LastChangedBy: r.reiz $
$Revision: 66 $
$Date: 2009-12-08 12:03:04 +0100 (Tue, 08 Dec 2009) $


Constructor Summary
PropertiesLoaderTest()
           
 
Method Summary
 void getMessage1()
          In this testcase we fetch a message, who are existing in the mandant, but not in the directory and not in the root.
 void getMessage2()
          In this testcase we fetch a message, who are in the directory but not in the root.
 void getMessage3()
          In this testcase we fetch a message, who are in the root but not in the directory.
 void getMessage4()
          In this testcase we fetch a message, who are in the root and in the directory.
 void getMessage5()
          In this testcase we fetch a message, with the key null.
 void getMessage6()
          In this testcase we fetch a message, with the key "".
 void getMessage7()
          In this testcase we fetch a message, who are in the root and in the directory.
 void getMessage8()
          In this testcase we set the propFile to an non existing name.
 void getProperites1()
          In this testcase we want fetch a properites from the manant.
 void getProperites2()
          In this testcase we want fetch a properites from the manant.
 void getProperites3()
          In this testcase we want fetch a properites from the manant.
 void getProperites4()
          In this testcase we want fetch a properites from the directory.
 void getProperites5()
          In this testcase we want fetch a properites from the root.
 void getProperitesFromDirectory()
          In this testcase we want fetch a properites from the directory.
 void getProperitesFromDirectory2()
          In this testcase we want fetch a properites from the directory.
 void getProperitesFromMandant1()
          In this testcase we want fetch a properites from the mandant.
 void getProperitesFromMandant2()
          In this testcase we want fetch a properites from the mandant.
 void getProperitesFromRoot()
          In this testcase we want fetch a properites from the root.
 void getProperitesFromRoot2()
          In this testcase we want fetch a properites from the root.
 void getterAndSetterForDirectory()
          In this testcase we test the getter and setter for directory.
 void getterAndSetterForPropFile()
          In this testcase we test the getter and setter for propFile.
 void init()
          Here we setup the TestScenario.
 void replaceVariables1()
          In this testcase we set up a map with a variable.
 void replaceVariables2()
          In this testcase we set up a map with a variable and the mandant "mvv".
 void replaceVariables3()
          In this testcase we set up a map with a variable and the mandant "mvv".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesLoaderTest

public PropertiesLoaderTest()
Method Detail

init

public void init()
Here we setup the TestScenario.


getterAndSetterForDirectory

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


getterAndSetterForPropFile

public void getterAndSetterForPropFile()
In this testcase we test the getter and setter for propFile.


getMessage1

public void getMessage1()
In this testcase we fetch a message, who are existing in the mandant, but not in the directory and not in the root. We expect NULL.


getMessage2

public void getMessage2()
In this testcase we fetch a message, who are in the directory but not in the root. We expect "JustDirectory".


getMessage3

public void getMessage3()
In this testcase we fetch a message, who are in the root but not in the directory. We expect "JustDirectory".


getMessage4

public void getMessage4()
In this testcase we fetch a message, who are in the root and in the directory. We expect to fetch "directory", because the framework search from down to up.


getMessage5

public void getMessage5()
In this testcase we fetch a message, with the key null. We expect null.


getMessage6

public void getMessage6()
In this testcase we fetch a message, with the key "". We expect null.


getMessage7

public void getMessage7()
In this testcase we fetch a message, who are in the root and in the directory. We expect to fetch "directory", because the framework search from down to up.


getMessage8

public void getMessage8()
In this testcase we set the propFile to an non existing name. We expect null.


replaceVariables1

public void replaceVariables1()
In this testcase we set up a map with a variable. We expect that, the variable is replaced through "dir".


replaceVariables2

public void replaceVariables2()
In this testcase we set up a map with a variable and the mandant "mvv". We expect that, the variable is replaced through "mvv".


replaceVariables3

public void replaceVariables3()
In this testcase we set up a map with a variable and the mandant "mvv". We expect that, the variable is replaced through "dir", because in the mail.properties in the mandant dir. is no variable with the given name.


getProperites1

public void getProperites1()
In this testcase we want fetch a properites from the manant. We expect null.


getProperites2

public void getProperites2()
In this testcase we want fetch a properites from the manant. We expect null.


getProperites3

public void getProperites3()
In this testcase we want fetch a properites from the manant. We expect not null.


getProperites4

public void getProperites4()
In this testcase we want fetch a properites from the directory. We expect not null.


getProperites5

public void getProperites5()
In this testcase we want fetch a properites from the root. We expect not null.


getProperitesFromMandant1

public void getProperitesFromMandant1()
In this testcase we want fetch a properites from the mandant. We expect null.


getProperitesFromMandant2

public void getProperitesFromMandant2()
In this testcase we want fetch a properites from the mandant. We expect null.


getProperitesFromDirectory

public void getProperitesFromDirectory()
In this testcase we want fetch a properites from the directory. We expect null.


getProperitesFromDirectory2

public void getProperitesFromDirectory2()
In this testcase we want fetch a properites from the directory. We expect null.


getProperitesFromRoot

public void getProperitesFromRoot()
In this testcase we want fetch a properites from the root. We expect null.


getProperitesFromRoot2

public void getProperitesFromRoot2()
In this testcase we want fetch a properites from the root. We expect null.



Copyright © 2009 PLOIN GmbH. All Rights Reserved.