com.stratelia.webactiv.almanach.control.ejb
Class EventOccurrencesGeneratorTest

java.lang.Object
  extended by com.silverpeas.components.model.AbstractJndiCase
      extended by com.stratelia.webactiv.almanach.BaseAlmanachTest
          extended by com.stratelia.webactiv.almanach.control.ejb.EventOccurrencesGeneratorTest

public class EventOccurrencesGeneratorTest
extends BaseAlmanachTest

Unit tests on the generation of occurrences of events in a given period.


Field Summary
 
Fields inherited from class com.stratelia.webactiv.almanach.BaseAlmanachTest
almanachIds, TEST_MONTH, TEST_YEAR
 
Fields inherited from class com.silverpeas.components.model.AbstractJndiCase
baseTest
 
Constructor Summary
EventOccurrencesGeneratorTest()
           
 
Method Summary
 void generateOccurrencesFromAGivenDateWithNoEvents()
           
 void generateOccurrencesFromAGivenDateWithNonPeriodicEvents()
           
 void generateOccurrencesFromAGivenDateWithPeriodicAndNonPeriodicEvents()
           
 void generateOccurrencesFromAGivenDateWithPeriodicEvents()
           
 void generateOccurrencesInMonthWithNoEvents()
           
 void generateOccurrencesInMonthWithNonPeriodicEvents()
           
 void generateOccurrencesInMonthWithPeriodicAndNonPeriodicEvents()
           
 void generateOccurrencesInMonthWithPeriodicEvents()
           
 void generateOccurrencesInRangeWithNoEvents()
           
 void generateOccurrencesInRangeWithNonPeriodicEvents()
           
 void generateOccurrencesInRangeWithPeriodicAndNonPeriodicEvents()
           
 void generateOccurrencesInRangeWithPeriodicEvents()
           
 void generateOccurrencesInWeekWithNoEvents()
           
 void generateOccurrencesInWeekWithNonPeriodicEvents()
           
 void generateOccurrencesInWeekWithPeriodicAndNonPeriodicEvents()
           
 void generateOccurrencesInWeekWithPeriodicEvents()
           
 void generateOccurrencesInYearWithNoEvents()
           
 void generateOccurrencesInYearWithNonPeriodicEvents()
           
 void generateOccurrencesInYearWithPeriodicAndNonPeriodicEvents()
           
 void generateOccurrencesInYearWithPeriodicEvents()
           
 void prepareOccurrenceGenerator()
           
 
Methods inherited from class com.stratelia.webactiv.almanach.BaseAlmanachTest
bootstrapDatabase, dateToUseInTests, generalSetUp, getConnection, getDate, shutdownDatabase
 
Methods inherited from class com.silverpeas.components.model.AbstractJndiCase
executeDDL, loadDDL, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventOccurrencesGeneratorTest

public EventOccurrencesGeneratorTest()
Method Detail

prepareOccurrenceGenerator

public void prepareOccurrenceGenerator()

generateOccurrencesInYearWithNoEvents

public void generateOccurrencesInYearWithNoEvents()

generateOccurrencesInYearWithNonPeriodicEvents

public void generateOccurrencesInYearWithNonPeriodicEvents()
                                                    throws Exception
Throws:
Exception

generateOccurrencesInYearWithPeriodicEvents

public void generateOccurrencesInYearWithPeriodicEvents()
                                                 throws Exception
Throws:
Exception

generateOccurrencesInYearWithPeriodicAndNonPeriodicEvents

public void generateOccurrencesInYearWithPeriodicAndNonPeriodicEvents()
                                                               throws Exception
Throws:
Exception

generateOccurrencesInMonthWithNoEvents

public void generateOccurrencesInMonthWithNoEvents()

generateOccurrencesInMonthWithNonPeriodicEvents

public void generateOccurrencesInMonthWithNonPeriodicEvents()
                                                     throws Exception
Throws:
Exception

generateOccurrencesInMonthWithPeriodicEvents

public void generateOccurrencesInMonthWithPeriodicEvents()
                                                  throws Exception
Throws:
Exception

generateOccurrencesInMonthWithPeriodicAndNonPeriodicEvents

public void generateOccurrencesInMonthWithPeriodicAndNonPeriodicEvents()
                                                                throws Exception
Throws:
Exception

generateOccurrencesInWeekWithNoEvents

public void generateOccurrencesInWeekWithNoEvents()

generateOccurrencesInWeekWithNonPeriodicEvents

public void generateOccurrencesInWeekWithNonPeriodicEvents()
                                                    throws Exception
Throws:
Exception

generateOccurrencesInWeekWithPeriodicEvents

public void generateOccurrencesInWeekWithPeriodicEvents()
                                                 throws Exception
Throws:
Exception

generateOccurrencesInWeekWithPeriodicAndNonPeriodicEvents

public void generateOccurrencesInWeekWithPeriodicAndNonPeriodicEvents()
                                                               throws Exception
Throws:
Exception

generateOccurrencesFromAGivenDateWithNoEvents

public void generateOccurrencesFromAGivenDateWithNoEvents()
                                                   throws Exception
Throws:
Exception

generateOccurrencesFromAGivenDateWithNonPeriodicEvents

public void generateOccurrencesFromAGivenDateWithNonPeriodicEvents()
                                                            throws Exception
Throws:
Exception

generateOccurrencesFromAGivenDateWithPeriodicEvents

public void generateOccurrencesFromAGivenDateWithPeriodicEvents()
                                                         throws Exception
Throws:
Exception

generateOccurrencesFromAGivenDateWithPeriodicAndNonPeriodicEvents

public void generateOccurrencesFromAGivenDateWithPeriodicAndNonPeriodicEvents()
                                                                       throws Exception
Throws:
Exception

generateOccurrencesInRangeWithNoEvents

public void generateOccurrencesInRangeWithNoEvents()
                                            throws Exception
Throws:
Exception

generateOccurrencesInRangeWithNonPeriodicEvents

public void generateOccurrencesInRangeWithNonPeriodicEvents()
                                                     throws Exception
Throws:
Exception

generateOccurrencesInRangeWithPeriodicEvents

public void generateOccurrencesInRangeWithPeriodicEvents()
                                                  throws Exception
Throws:
Exception

generateOccurrencesInRangeWithPeriodicAndNonPeriodicEvents

public void generateOccurrencesInRangeWithPeriodicAndNonPeriodicEvents()
                                                                throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.