com.stratelia.webactiv.almanach.model
Class EventDAOTest

java.lang.Object
  extended by com.silverpeas.components.model.AbstractJndiCase
      extended by com.stratelia.webactiv.almanach.BaseAlmanachTest
          extended by com.stratelia.webactiv.almanach.model.EventDAOTest

public class EventDAOTest
extends BaseAlmanachTest

Unit tests on the DAO of event details.


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
EventDAOTest()
           
 
Method Summary
 void emptyTest()
           
 void fetchAllEventsOfAnAlmanach()
           
 void fetchAllEventsOfAnUnexistingAlmanachs()
           
 void fetchAllEventsOfSeveralAlmanachs()
           
 void fetchAllEventsOfSeveralUnexistingAlmanachs()
           
 void fetchANonExistingEvent()
           
 void fetchANonPeriodicEvent()
           
 void fetchAPeriodicEvent()
           
 void fetchEventInARangeWithoutAnyEvents()
           
 void fetchEventInARangeWithoutEndDay()
           
 void fetchEventsDefinedInAMonth()
           
 void fetchEventsDefinedInAMonthForAGivenAlmanach()
           
 void fetchEventsDefinedInAMonthForEmptyAlmanach()
           
 void fetchEventsDefinedInAWeek()
           
 void fetchEventsDefinedInAWeekForAGivenAlmanach()
           
 void fetchEventsDefinedInAWeekForEmptyAlmanach()
           
 void fetchEventsDefinedInAYear()
           
 void fetchEventsDefinedInAYearForAGivenAlmanach()
           
 void fetchEventsDefinedInAYearForEmptyAlmanach()
           
 void fetchEventsForAMonthWithoutAnyEvents()
           
 void fetchEventsForAWeekWithoutAnyEvents()
           
 void fetchEventsForAYearWithoutAnyEvents()
           
 void fetchEventsInAGivenRange()
           
 void fetchSomeEvents()
           
 void prepareEventDAO()
           
 
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

EventDAOTest

public EventDAOTest()
Method Detail

prepareEventDAO

public void prepareEventDAO()

emptyTest

public void emptyTest()

fetchEventsDefinedInAYear

public void fetchEventsDefinedInAYear()
                               throws Exception
Throws:
Exception

fetchEventsDefinedInAYearForAGivenAlmanach

public void fetchEventsDefinedInAYearForAGivenAlmanach()
                                                throws Exception
Throws:
Exception

fetchEventsForAYearWithoutAnyEvents

public void fetchEventsForAYearWithoutAnyEvents()
                                         throws Exception
Throws:
Exception

fetchEventsDefinedInAYearForEmptyAlmanach

public void fetchEventsDefinedInAYearForEmptyAlmanach()
                                               throws Exception
Throws:
Exception

fetchEventsDefinedInAMonth

public void fetchEventsDefinedInAMonth()
                                throws Exception
Throws:
Exception

fetchEventsDefinedInAMonthForAGivenAlmanach

public void fetchEventsDefinedInAMonthForAGivenAlmanach()
                                                 throws Exception
Throws:
Exception

fetchEventsForAMonthWithoutAnyEvents

public void fetchEventsForAMonthWithoutAnyEvents()
                                          throws Exception
Throws:
Exception

fetchEventsDefinedInAMonthForEmptyAlmanach

public void fetchEventsDefinedInAMonthForEmptyAlmanach()
                                                throws Exception
Throws:
Exception

fetchEventsForAWeekWithoutAnyEvents

public void fetchEventsForAWeekWithoutAnyEvents()
                                         throws Exception
Throws:
Exception

fetchEventsDefinedInAWeekForEmptyAlmanach

public void fetchEventsDefinedInAWeekForEmptyAlmanach()
                                               throws Exception
Throws:
Exception

fetchEventsDefinedInAWeek

public void fetchEventsDefinedInAWeek()
                               throws Exception
Throws:
Exception

fetchEventsDefinedInAWeekForAGivenAlmanach

public void fetchEventsDefinedInAWeekForAGivenAlmanach()
                                                throws Exception
Throws:
Exception

fetchAPeriodicEvent

public void fetchAPeriodicEvent()
                         throws Exception
Throws:
Exception

fetchANonPeriodicEvent

public void fetchANonPeriodicEvent()
                            throws Exception
Throws:
Exception

fetchANonExistingEvent

public void fetchANonExistingEvent()
                            throws Exception
Throws:
Exception

fetchAllEventsOfAnAlmanach

public void fetchAllEventsOfAnAlmanach()
                                throws Exception
Throws:
Exception

fetchAllEventsOfAnUnexistingAlmanachs

public void fetchAllEventsOfAnUnexistingAlmanachs()
                                           throws Exception
Throws:
Exception

fetchAllEventsOfSeveralAlmanachs

public void fetchAllEventsOfSeveralAlmanachs()
                                      throws Exception
Throws:
Exception

fetchAllEventsOfSeveralUnexistingAlmanachs

public void fetchAllEventsOfSeveralUnexistingAlmanachs()
                                                throws Exception
Throws:
Exception

fetchSomeEvents

public void fetchSomeEvents()
                     throws Exception
Throws:
Exception

fetchEventsInAGivenRange

public void fetchEventsInAGivenRange()
                              throws Exception
Throws:
Exception

fetchEventInARangeWithoutEndDay

public void fetchEventInARangeWithoutEndDay()
                                     throws Exception
Throws:
Exception

fetchEventInARangeWithoutAnyEvents

public void fetchEventInARangeWithoutAnyEvents()
                                        throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.