com.silverpeas.export.ical
Class ICalExporterTest

java.lang.Object
  extended by com.silverpeas.export.ical.ICalExporterTest

@ContextConfiguration(locations="/spring-export.xml")
public class ICalExporterTest
extends Object

Unit tests on the export of calendar events in iCal format.


Constructor Summary
ICalExporterTest()
           
 
Method Summary
 void clean()
           
 void emptyTest()
           
 void exportNoEventsThrowsExportException()
          When no events have to be exported, then an exception is thrown by the impossibility to export a calendar without any events in the iCal format.
 void exportOneDayEventGenerateAnICalFileWithInfoOnThatEvent()
          Export one event in iCal format into a specified file.
 void exportOneEventGenerateAnICalFileWithInfoOnThatEvent()
          Export one event in iCal format into a specified file.
 void exportOneEventOnDayEndingAtAGivenTime()
          An event defined on a day cannot have an end date in iCal.
 void exportOneEventOnDayStartingAtAGivenTime()
           
 void exportOneEventWithARecurringEndDateGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
          Export one recurring event withWriter a recurring end date in iCal format into a specified file.
 void exportOneEventWithARecurringEndDateTimeGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
          Export one recurring event withWriter a recurring end date in iCal format into a specified file.
 void exportOneRecurringEventGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
          Export one recurring event in iCal format into a specified file.
 void exportOneRecurringEventOnSomeDaysOfWeekGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
          Export one event recurring on some days of week in iCal format into a specified file.
 void exportSeveralEventsGenerateAnICalFileWithInfoOnThatEvents()
          Export several events in iCal format into a specified file.
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICalExporterTest

public ICalExporterTest()
Method Detail

setUp

public void setUp()
           throws IOException
Throws:
IOException

clean

public void clean()
           throws IOException
Throws:
IOException

emptyTest

public void emptyTest()

exportNoEventsThrowsExportException

public void exportNoEventsThrowsExportException()
                                         throws Exception
When no events have to be exported, then an exception is thrown by the impossibility to export a calendar without any events in the iCal format.

Throws:
Exception - if the test fails.

exportOneEventGenerateAnICalFileWithInfoOnThatEvent

public void exportOneEventGenerateAnICalFileWithInfoOnThatEvent()
                                                         throws Exception
Export one event in iCal format into a specified file.

Throws:
Exception - if the export fails.

exportOneDayEventGenerateAnICalFileWithInfoOnThatEvent

public void exportOneDayEventGenerateAnICalFileWithInfoOnThatEvent()
                                                            throws Exception
Export one event in iCal format into a specified file.

Throws:
Exception - if the export fails.

exportSeveralEventsGenerateAnICalFileWithInfoOnThatEvents

public void exportSeveralEventsGenerateAnICalFileWithInfoOnThatEvents()
                                                               throws Exception
Export several events in iCal format into a specified file.

Throws:
Exception - if the export fails.

exportOneRecurringEventGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence

public void exportOneRecurringEventGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
                                                                                  throws Exception
Export one recurring event in iCal format into a specified file. The recurring information of the event should be indicated in the iCal file.

Throws:
Exception - if the export fails.

exportOneRecurringEventOnSomeDaysOfWeekGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence

public void exportOneRecurringEventOnSomeDaysOfWeekGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
                                                                                                  throws Exception
Export one event recurring on some days of week in iCal format into a specified file. The recurring information of the event should be indicated in the iCal file.

Throws:
Exception - if the export fails.

exportOneEventWithARecurringEndDateGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence

public void exportOneEventWithARecurringEndDateGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
                                                                                              throws Exception
Export one recurring event withWriter a recurring end date in iCal format into a specified file. The recurring information of the event should be indicated in the iCal file.

Throws:
Exception - if the export fails.

exportOneEventWithARecurringEndDateTimeGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence

public void exportOneEventWithARecurringEndDateTimeGenerateAnICalFileWithInfoOnThatEventAndItsRecurrence()
                                                                                                  throws Exception
Export one recurring event withWriter a recurring end date in iCal format into a specified file. The recurring information of the event should be indicated in the iCal file.

Throws:
Exception - if the export fails.

exportOneEventOnDayStartingAtAGivenTime

public void exportOneEventOnDayStartingAtAGivenTime()
                                             throws Exception
Throws:
Exception

exportOneEventOnDayEndingAtAGivenTime

public void exportOneEventOnDayEndingAtAGivenTime()
                                           throws Exception
An event defined on a day cannot have an end date in iCal.

Throws:
Exception - if the ical export of the event failed.


Copyright © 2016 Silverpeas. All Rights Reserved.