com.silverpeas.calendar
Class DateTimeTest

java.lang.Object
  extended by com.silverpeas.calendar.DateTimeTest

public class DateTimeTest
extends Object

Unit tests on DateTime objects.


Constructor Summary
DateTimeTest()
           
 
Method Summary
 void cloneADateTimeCreatesANewInstanceForTheSameDateTime()
          Test of clone method, of class DateTime.
 void createsANowDate()
          Test of now method, of class DateTime.
 void createsAtASpecifiedDateTime()
           
 void createsAtASpecifiedShorterDateTime()
           
 void isDefinedNotDefined()
           
 void nowIsAfterAPastDateTime()
          Test of after method, of class DateTime.
 void nowIsBeforeAFuturDateTime()
          Test of before method, of class DateTime.
 void setUp()
           
static void setUpClass()
           
 void tearDown()
           
static void tearDownClass()
           
 void theICalInUTCRepresentation()
          Test of toICalInUTC method, of class DateTime.
 void theICalRepresentation()
          Test of toICal method, of class DateTime.
 void theISO8601Representation()
          Test of toISO8601 method, of class DateTime.
 void theTimeZoneImpactsOnlyTheISORepresentationOfTheDateTime()
          Test of inTimeZone method, of class DateTime.
 void twoSameDateTimesAreEqual()
          Test of equals method, of class DateTime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeTest

public DateTimeTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

setUp

public void setUp()

tearDown

public void tearDown()

createsANowDate

public void createsANowDate()
Test of now method, of class DateTime.


createsAtASpecifiedDateTime

public void createsAtASpecifiedDateTime()

createsAtASpecifiedShorterDateTime

public void createsAtASpecifiedShorterDateTime()

cloneADateTimeCreatesANewInstanceForTheSameDateTime

public void cloneADateTimeCreatesANewInstanceForTheSameDateTime()
Test of clone method, of class DateTime.


theISO8601Representation

public void theISO8601Representation()
Test of toISO8601 method, of class DateTime.


theICalRepresentation

public void theICalRepresentation()
Test of toICal method, of class DateTime.


theICalInUTCRepresentation

public void theICalInUTCRepresentation()
Test of toICalInUTC method, of class DateTime.


theTimeZoneImpactsOnlyTheISORepresentationOfTheDateTime

public void theTimeZoneImpactsOnlyTheISORepresentationOfTheDateTime()
Test of inTimeZone method, of class DateTime.


nowIsBeforeAFuturDateTime

public void nowIsBeforeAFuturDateTime()
Test of before method, of class DateTime.


nowIsAfterAPastDateTime

public void nowIsAfterAPastDateTime()
Test of after method, of class DateTime.


twoSameDateTimesAreEqual

public void twoSameDateTimesAreEqual()
Test of equals method, of class DateTime.


isDefinedNotDefined

public void isDefinedNotDefined()


Copyright © 2016 Silverpeas. All Rights Reserved.